/freebsd/contrib/llvm-project/libcxx/include/__functional/ |
H A D | perfect_forward.h | 43 …template <class... _Args, class = enable_if_t< is_constructible_v<tuple<_BoundArgs...>, _Args&&...… 53 template <class... _Args, class = enable_if_t<is_invocable_v<_Op, _BoundArgs&..., _Args...>>> 60 template <class... _Args, class = enable_if_t<!is_invocable_v<_Op, _BoundArgs&..., _Args...>>> 63 …template <class... _Args, class = enable_if_t<is_invocable_v<_Op, _BoundArgs const&..., _Args...>>> 70 …template <class... _Args, class = enable_if_t<!is_invocable_v<_Op, _BoundArgs const&..., _Args...>… 73 template <class... _Args, class = enable_if_t<is_invocable_v<_Op, _BoundArgs..., _Args...>>> 80 template <class... _Args, class = enable_if_t<!is_invocable_v<_Op, _BoundArgs..., _Args...>>> 83 template <class... _Args, class = enable_if_t<is_invocable_v<_Op, _BoundArgs const..., _Args...>>> 90 …template <class... _Args, class = enable_if_t<!is_invocable_v<_Op, _BoundArgs const..., _Args...>>> 95 template <class _Op, class... _Args> [all …]
|
H A D | bind_back.h | 34 template <class _Fn, class _BoundArgs, class... _Args> 37 std::forward<_Args>(__args)..., 40 std::forward<_Args>(__args)..., 43 std::forward<_Args>(__args)..., 53 template <class _Fn, class... _Args> 55 …(is_constructible_v<decay_t<_Args>, _Args> && ...) && (is_move_constructible_v<decay_t<_Args>> && … 56 _LIBCPP_HIDE_FROM_ABI constexpr auto __bind_back(_Fn&& __f, _Args&&... __args) noexcept( 57 noexcept(__bind_back_t<decay_t<_Fn>, tuple<decay_t<_Args>...>>( 59 -> decltype(__bind_back_t<decay_t<_Fn>, tuple<decay_t<_Args>...>>( 61 return __bind_back_t<decay_t<_Fn>, tuple<decay_t<_Args>...>>( [all …]
|
H A D | bind_front.h | 32 template <class... _Args> 33 _LIBCPP_HIDE_FROM_ABI constexpr auto operator()(_Args&&... __args) const 34 noexcept(noexcept(std::invoke(std::forward<_Args>(__args)...))) 35 -> decltype(std::invoke(std::forward<_Args>(__args)...)) { 36 return std::invoke(std::forward<_Args>(__args)...); 45 template <class _Fn, class... _Args> 47 …(is_constructible_v<decay_t<_Args>, _Args> && ...) && (is_move_constructible_v<decay_t<_Args>> && … 48 _LIBCPP_HIDE_FROM_ABI constexpr auto bind_front(_Fn&& __f, _Args&&... __args) { in bind_front() 49 …return __bind_front_t<decay_t<_Fn>, decay_t<_Args>...>(std::forward<_Fn>(__f), std::forward<_Args>… in bind_front()
|
H A D | invoke.h | 25 template <class _Fn, class... _Args> 26 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 invoke_result_t<_Fn, _Args...> 27 invoke(_Fn&& __f, _Args&&... __args) noexcept(is_nothrow_invocable_v<_Fn, _Args...>) { in invoke() 28 return std::__invoke(std::forward<_Fn>(__f), std::forward<_Args>(__args)...); in invoke() 34 template <class _Result, class _Fn, class... _Args> 35 requires is_invocable_r_v<_Result, _Fn, _Args...> 37 invoke_r(_Fn&& __f, _Args&&... __args) noexcept(is_nothrow_invocable_r_v<_Result, _Fn, _Args...>) { in invoke_r() 39 static_cast<void>(std::invoke(std::forward<_Fn>(__f), std::forward<_Args>(__args)...)); in invoke_r() 47 return std::invoke(std::forward<_Fn>(__f), std::forward<_Args>(__args)...); in invoke_r()
|
H A D | bind.h | 192 template <class _Fp, class _BoundArgs, size_t... _Indx, class _Args> 219 template <class... _Args> 221 operator()(_Args&&... __args) { 222 …std::__apply_functor(__f_, __bound_args_, __indices(), tuple<_Args&&...>(std::forward<_Args>(__arg… 225 template <class... _Args> 227 typename __bind_return<const _Fd, const _Td, tuple<_Args&&...> >::type 228 operator()(_Args&&... __args) const { 229 …std::__apply_functor(__f_, __bound_args_, __indices(), tuple<_Args&&...>(std::forward<_Args>(__arg… 254 class... _Args, 260 return _Invoker::__call(static_cast<base&>(*this), std::forward<_Args>(__args)...); [all …]
|
/freebsd/contrib/llvm-project/libcxx/include/__type_traits/ |
H A D | invoke.h | 287 template <class... _Args> 339 template <class _Fp, class... _Args> 364 template <class _Fp, class... _Args> 400 template <class _Fp, class... _Args> 403 template <class _Fp, class... _Args> 409 template <class... _Args> 417 template <class... _Args> 427 template <class _Fn, class... _Args> 433 template <class _Fn, class... _Args> 441 template <class _Fn, class... _Args> [all …]
|
H A D | is_nothrow_constructible.h | 28 template < class _Tp, class... _Args> 30 : public integral_constant<bool, __is_nothrow_constructible(_Tp, _Args...)> {}; 33 template <bool, bool, class _Tp, class... _Args> 36 template <class _Tp, class... _Args> 38 : public integral_constant<bool, noexcept(_Tp(std::declval<_Args>()...))> {}; 47 template <class _Tp, bool _IsReference, class... _Args> 51 template <class _Tp, class... _Args> 53 : __libcpp_is_nothrow_constructible<is_constructible<_Tp, _Args...>::value, 56 _Args...> {}; 65 template <class _Tp, class... _Args> [all …]
|
H A D | disjunction.h | 43 template <class... _Args> 44 …ng _Or _LIBCPP_NODEBUG = typename _OrImpl<sizeof...(_Args) != 0>::template _Result<false_type, _Ar… 48 template <class... _Args> 49 struct disjunction : _Or<_Args...> {}; 51 template <class... _Args> 52 inline constexpr bool disjunction_v = _Or<_Args...>::value;
|
H A D | conjunction.h | 48 template <class _Arg, class... _Args> 49 struct conjunction<_Arg, _Args...> : conditional_t<!bool(_Arg::value), _Arg, conjunction<_Args...>>… 51 template <class... _Args> 52 inline constexpr bool conjunction_v = conjunction<_Args...>::value;
|
/freebsd/contrib/llvm-project/libcxx/include/__ranges/ |
H A D | to.h | 76 template <class _Container, class _Range, class... _Args> 86 template <class _Container, input_range _Range, class... _Args> 99 if constexpr (constructible_from<_Container, _Range, _Args...>) { in to() 114 else if constexpr (constructible_from<_Container, _Args...> && in to() 116 _Container __result(std::forward<_Args>(__args)...); in to() 135 std::forward<_Args>(__args)...); in to() 166 _Container(std::declval<_Range>(), std::declval<_Args>()...)); in __deduce_func() 196 using _DeduceExpr = typename _Deducer<_Container, _Range, _Args...>::type; in to() 202 template <class _Container, class... _Args> 204 _LIBCPP_NODISCARD_EXT _LIBCPP_HIDE_FROM_ABI constexpr auto to(_Args&&... __args) { in to() [all …]
|
H A D | movable_box.h | 62 template <class... _Args> 63 requires is_constructible_v<_Tp, _Args...> 65 is_nothrow_constructible_v<_Tp, _Args...>) in __movable_box() 66 : __val_(in_place, std::forward<_Args>(__args)...) {} in __movable_box() 170 template <class... _Args> 172 : __val_(std::forward<_Args>(__args)...) {} in __movable_box_holder() 180 template <class... _Args> 182 : __val_(std::forward<_Args>(__args)...) {} 191 template <class... _Args> 192 requires is_constructible_v<_Tp, _Args...> [all …]
|
/freebsd/contrib/llvm-project/libcxx/include/__memory/ |
H A D | allocator_arg_t.h | 40 template <class _Tp, class _Alloc, class... _Args> 44 static const bool __ic = is_constructible<_Tp, allocator_arg_t, _Alloc, _Args...>::value; 48 template <class _Tp, class _Alloc, class... _Args> 49 struct __uses_alloc_ctor : integral_constant<int, __uses_alloc_ctor_imp<_Tp, _Alloc, _Args...>::val… 51 template <class _Tp, class _Allocator, class... _Args> 53 __user_alloc_construct_impl(integral_constant<int, 0>, _Tp* __storage, const _Allocator&, _Args&&..… in __user_alloc_construct_impl() 54 new (__storage) _Tp(std::forward<_Args>(__args)...); in __user_alloc_construct_impl() 58 template <class _Tp, class _Allocator, class... _Args> 61 new (__storage) _Tp(allocator_arg, __a, std::forward<_Args>(__args)...); in __user_alloc_construct_impl() 65 template <class _Tp, class _Allocator, class... _Args> [all …]
|
H A D | uses_allocator_construction.h | 45 __uses_allocator_construction_args(const _Alloc& __alloc, _Args&&... __args) noexcept { in __uses_allocator_construction_args() 47 return std::forward_as_tuple(std::forward<_Args>(__args)...); in __uses_allocator_construction_args() 50 …return tuple<allocator_arg_t, const _Alloc&, _Args&&...>(allocator_arg, __alloc, std::forward<_Arg… in __uses_allocator_construction_args() 52 is_constructible_v<_Type, _Args..., const _Alloc&>) { in __uses_allocator_construction_args() 53 return std::forward_as_tuple(std::forward<_Args>(__args)..., __alloc); in __uses_allocator_construction_args() 181 template <class _Type, class _Alloc, class... _Args> 212 template <class _Type, class _Alloc, class... _Args> 218 template <class _Type, class _Alloc, class... _Args> 230 template <class _Type, class _Alloc, class... _Args> 236 template <class _Type, class _Alloc, class... _Args> [all …]
|
H A D | construct_at.h | 38 template <class _Tp, class... _Args, class = decltype(::new(std::declval<void*>()) _Tp(std::declval… 39 _LIBCPP_HIDE_FROM_ABI constexpr _Tp* construct_at(_Tp* __location, _Args&&... __args) { in construct_at() 41 return ::new (std::__voidify(*__location)) _Tp(std::forward<_Args>(__args)...); in construct_at() 46 template <class _Tp, class... _Args, class = decltype(::new(std::declval<void*>()) _Tp(std::declval… 47 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR _Tp* __construct_at(_Tp* __location, _Args&&... __args) { in __construct_at() 49 return std::construct_at(__location, std::forward<_Args>(__args)...); in __construct_at() 52 ::new (std::__voidify(*__location)) _Tp(std::forward<_Args>(__args)...); in __construct_at()
|
/freebsd/contrib/llvm-project/libcxx/include/__format/ |
H A D | format_functions.h | 74 template <class... _Args> 398 template <class... _Args> 402 template <class... _Args> 440 format_to(_OutIt __out_it, format_string<_Args...> __fmt, _Args&&... __args) { in format_to() 447 format_to(_OutIt __out_it, wformat_string<_Args...> __fmt, _Args&&... __args) { in format_to() 476 format(format_string<_Args...> __fmt, _Args&&... __args) { in format() 483 format(wformat_string<_Args...> __fmt, _Args&&... __args) { in format() 524 formatted_size(format_string<_Args...> __fmt, _Args&&... __args) { in formatted_size() 531 formatted_size(wformat_string<_Args...> __fmt, _Args&&... __args) { in formatted_size() 609 format(locale __loc, format_string<_Args...> __fmt, _Args&&... __args) { in format() [all …]
|
H A D | formatter_tuple.h | 38 template <__fmt_char_type _CharT, class _Tuple, formattable<_CharT>... _Args> 58 if constexpr (sizeof...(_Args) == 2) { in parse() 74 std::__for_each_index_sequence(make_index_sequence<sizeof...(_Args)>(), [&]<size_t _Index> { in parse() 120 std::__for_each_index_sequence(make_index_sequence<sizeof...(_Args)>(), [&]<size_t _Index> { in __format_tuple() 132 tuple<formatter<remove_cvref_t<_Args>, _CharT>...> __underlying_; 138 template <__fmt_char_type _CharT, formattable<_CharT>... _Args> 139 struct _LIBCPP_TEMPLATE_VIS formatter<pair<_Args...>, _CharT> 140 : public __formatter_tuple<_CharT, pair<_Args...>, _Args...> {}; 142 template <__fmt_char_type _CharT, formattable<_CharT>... _Args> 143 struct _LIBCPP_TEMPLATE_VIS formatter<tuple<_Args...>, _CharT> [all …]
|
H A D | format_args.h | 34 template <class... _Args> 35 …_LIBCPP_HIDE_FROM_ABI basic_format_args(const __format_arg_store<_Context, _Args...>& __store) noe… in basic_format_args() 36 : __size_(sizeof...(_Args)) { in basic_format_args() 37 if constexpr (sizeof...(_Args) != 0) { in basic_format_args() 38 if constexpr (__format::__use_packed_format_arg_store(sizeof...(_Args))) { in basic_format_args() 74 template <class _Context, class... _Args> 75 basic_format_args(__format_arg_store<_Context, _Args...>) -> basic_format_args<_Context>;
|
/freebsd/contrib/llvm-project/libcxx/include/experimental/ |
H A D | type_traits | 90 template <class _Fn, class ..._Args> 91 class _LIBCPP_TEMPLATE_VIS raw_invocation_type<_Fn(_Args...)>; 96 template <class _Fn, class ..._Args> 97 class _LIBCPP_TEMPLATE_VIS invokation_type<_Fn(_Args...)>; 123 struct _DETECTOR<_Default, void_t<_Op<_Args...>>, _Op, _Args...> { 125 using type = _Op<_Args...>; 128 template <template <class...> class _Op, class... _Args> 130 template <template <class...> class _Op, class... _Args> 132 template <template <class...> class _Op, class... _Args> 136 using detected_or = _DETECTOR<_Default, void, _Op, _Args...>; [all …]
|
H A D | __memory | 43 template <bool _UsesAlloc, class _Tp, class _Alloc, class... _Args> 48 template <class _Tp, class _Alloc, class... _Args> 49 struct __lfts_uses_alloc_ctor_imp<true, _Tp, _Alloc, _Args...> { 60 template <class _Tp, class _Alloc, class... _Args> 66 template <class _Tp, class _Allocator, class... _Args> 69 new (__storage) _Tp(std::forward<_Args>(__args)...); 73 template <class _Tp, class _Allocator, class... _Args> 80 template <class _Tp, class _Allocator, class... _Args> 83 new (__storage) _Tp(std::forward<_Args>(__args)..., __a); 86 template <class _Tp, class _Alloc, class... _Args> [all …]
|
/freebsd/contrib/llvm-project/libcxx/include/__expected/ |
H A D | expected.h | 114 template <class... _Args> 128 template <class... _Args> 238 template <class... _Args> 242 template <class... _Args> 273 template <class... _Args> 277 template <class... _Args> 281 template <class... _Args> 399 template <class... _Args> 575 template <class... _Args> 587 template <class... _Args> [all …]
|
H A D | unexpected.h | 77 template <class... _Args> 78 requires is_constructible_v<_Err, _Args...> 79 _LIBCPP_HIDE_FROM_ABI constexpr explicit unexpected(in_place_t, _Args&&... __args) // 80 noexcept(is_nothrow_constructible_v<_Err, _Args...>) // strengthened 81 : __unex_(std::forward<_Args>(__args)...) {} 83 template <class _Up, class... _Args> 84 requires is_constructible_v<_Err, initializer_list<_Up>&, _Args...> 85 …_LIBCPP_HIDE_FROM_ABI constexpr explicit unexpected(in_place_t, initializer_list<_Up> __il, _Args&… 86 noexcept(is_nothrow_constructible_v<_Err, initializer_list<_Up>&, _Args...>) // strengthened 87 : __unex_(__il, std::forward<_Args>(__args)...) {}
|
/freebsd/contrib/llvm-project/libcxx/include/__thread/ |
H A D | jthread.h | 47 template <class _Fun, class... _Args> 48 _LIBCPP_HIDE_FROM_ABI explicit jthread(_Fun&& __fun, _Args&&... __args) in jthread() 51 …__thread_(__init_thread(__stop_source_, std::forward<_Fun>(__fun), std::forward<_Args>(__args)...)… in jthread() 53 static_assert((is_constructible_v<decay_t<_Args>, _Args> && ...)); in jthread() 54 static_assert(is_invocable_v<decay_t<_Fun>, decay_t<_Args>...> || in jthread() 55 is_invocable_v<decay_t<_Fun>, stop_token, decay_t<_Args>...>); in jthread() 116 template <class _Fun, class... _Args> 117 …_LIBCPP_HIDE_FROM_ABI static thread __init_thread(const stop_source& __ss, _Fun&& __fun, _Args&&..… in __init_thread() 118 if constexpr (is_invocable_v<decay_t<_Fun>, stop_token, decay_t<_Args>...>) { in __init_thread() 119 return thread(std::forward<_Fun>(__fun), __ss.get_token(), std::forward<_Args>(__args)...); in __init_thread() [all …]
|
/freebsd/contrib/llvm-project/libcxx/include/__utility/ |
H A D | no_destroy.h | 41 template <class... _Args> 42 _LIBCPP_CONSTEXPR _LIBCPP_HIDE_FROM_ABI explicit __no_destroy(_Args&&... __args) in __no_destroy() 43 : __obj_(std::forward<_Args>(__args)...) {} in __no_destroy() 45 template <class... _Args> 46 _LIBCPP_CONSTEXPR_SINCE_CXX14 _LIBCPP_HIDE_FROM_ABI _Tp& __emplace(_Args&&... __args) { in __emplace() 47 new (&__obj_) _Tp(std::forward<_Args>(__args)...); in __emplace()
|
/freebsd/contrib/llvm-project/libcxx/include/__concepts/ |
H A D | invocable.h | 26 template <class _Fn, class... _Args> 27 concept invocable = requires(_Fn&& __fn, _Args&&... __args) { in requires() 28 …std::invoke(std::forward<_Fn>(__fn), std::forward<_Args>(__args)...); // not required to be equali… in requires() 33 template <class _Fn, class... _Args> 34 concept regular_invocable = invocable<_Fn, _Args...>;
|
/freebsd/contrib/llvm-project/libcxx/include/ |
H A D | any | 215 class... _Args, 222 class... _Args, 247 class... _Args, 250 _LIBCPP_HIDE_FROM_ABI _Tp& emplace(_Args&&...); 254 class... _Args, 340 template <class... _Args> 407 template <class... _Args> 464 template <class _ValueType, class... _Args, class _Tp, class> 465 any::any(in_place_type_t<_ValueType>, _Args&&... __args) { 511 template <class _Tp, class... _Args> [all …]
|