Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
include/tuple
Show First 20 Lines • Show All 1,368 Lines • ▼ Show 20 Lines | _VSTD::__apply_tuple_impl( | ||||
_VSTD::forward<_Fn>(__f), _VSTD::forward<_Tuple>(__t), | _VSTD::forward<_Fn>(__f), _VSTD::forward<_Tuple>(__t), | ||||
typename __make_tuple_indices<tuple_size_v<remove_reference_t<_Tuple>>>::type{}) | typename __make_tuple_indices<tuple_size_v<remove_reference_t<_Tuple>>>::type{}) | ||||
) | ) | ||||
template <class _Tp, class _Tuple, size_t... _Idx> | template <class _Tp, class _Tuple, size_t... _Idx> | ||||
inline _LIBCPP_INLINE_VISIBILITY | inline _LIBCPP_INLINE_VISIBILITY | ||||
constexpr _Tp __make_from_tuple_impl(_Tuple&& __t, __tuple_indices<_Idx...>) | constexpr _Tp __make_from_tuple_impl(_Tuple&& __t, __tuple_indices<_Idx...>) | ||||
_LIBCPP_NOEXCEPT_RETURN( | _LIBCPP_NOEXCEPT_RETURN( | ||||
_Tp(_VSTD::get<_Idx>(_VSTD::forward<_Tuple>(__t))...) | _Tp(_VSTD::move(_VSTD::get<_Idx>(_VSTD::forward<_Tuple>(__t)))...) | ||||
zoecarver: I can submit a separate patch for this. | |||||
zoecarverUnsubmitted Given that a fix for this goes against the standard, I am not sure what to do here. First, I am going to look into this more and make sure it is necessary. As a note, the change here is not my suggested fix. Please see D61293 for that. zoecarver: Given that a fix for this goes against the standard, I am not sure what to do here. First, I am… | |||||
) | ) | ||||
template <class _Tp, class _Tuple> | template <class _Tp, class _Tuple> | ||||
inline _LIBCPP_INLINE_VISIBILITY | inline _LIBCPP_INLINE_VISIBILITY | ||||
constexpr _Tp make_from_tuple(_Tuple&& __t) | constexpr _Tp make_from_tuple(_Tuple&& __t) | ||||
_LIBCPP_NOEXCEPT_RETURN( | _LIBCPP_NOEXCEPT_RETURN( | ||||
_VSTD::__make_from_tuple_impl<_Tp>(_VSTD::forward<_Tuple>(__t), | _VSTD::__make_from_tuple_impl<_Tp>(_VSTD::forward<_Tuple>(__t), | ||||
typename __make_tuple_indices<tuple_size_v<remove_reference_t<_Tuple>>>::type{}) | typename __make_tuple_indices<tuple_size_v<remove_reference_t<_Tuple>>>::type{}) | ||||
Show All 11 Lines |
I can submit a separate patch for this.