Home
last modified time | relevance | path

Searched refs:_Args (Results 1 – 25 of 91) sorted by relevance

1234

/freebsd/contrib/llvm-project/libcxx/include/__functional/
H A Dperfect_forward.h43 template <class... _Args, class = enable_if_t< is_constructible_v<tuple<_BoundArgs...>, _Args&&...> >>
44 _LIBCPP_HIDE_FROM_ABI explicit constexpr __perfect_forward_impl(_Args&&... __bound_args)
45 : __bound_args_(std::forward<_Args>(__bound_args)...) {}
53 template <class... _Args, class = enable_if_t<is_invocable_v<_Op, _BoundArgs&..., _Args...>>>
54 _LIBCPP_HIDE_FROM_ABI constexpr auto operator()(_Args&&... __args) & noexcept(
55 noexcept(_Op()(std::get<_Idx>(__bound_args_)..., std::forward<_Args>(__args)...)))
56 -> decltype(_Op()(std::get<_Idx>(__bound_args_)..., std::forward<_Args>(__args)...)) {
57 return _Op()(std::get<_Idx>(__bound_args_)..., std::forward<_Args>(__arg
[all...]
H A Dbind_back.h34 template <class _Fn, class _BoundArgs, class... _Args>
35 …_LIBCPP_HIDE_FROM_ABI constexpr auto operator()(_Fn&& __f, _BoundArgs&& __bound_args, _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>...>>(
58 std::forward<_Fn>(__f), std::forward_as_tuple(std::forward<_Args>(__args)...))))
[all …]
H A Dbind_front.h31 template <class... _Args>
32 _LIBCPP_HIDE_FROM_ABI constexpr auto operator()(_Args&&... __args) const noexcept(
33 …noexcept(std::invoke(std::forward<_Args>(__args)...))) -> decltype(std::invoke(std::forward<_Args>…
34 return std::invoke(std::forward<_Args>(__args)...);
43 template <class _Fn, class... _Args>
45 …(is_constructible_v<decay_t<_Args>, _Args> && ...) && (is_move_constructible_v<decay_t<_Args>> && …
46 _LIBCPP_HIDE_FROM_ABI constexpr auto bind_front(_Fn&& __f, _Args&&... __args) { in bind_front()
47 …return __bind_front_t<decay_t<_Fn>, decay_t<_Args>...>(std::forward<_Fn>(__f), std::forward<_Args>… in bind_front()
H A Dinvoke.h25 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...>) {
39 static_cast<void>(std::invoke(std::forward<_Fn>(__f), std::forward<_Args>(__arg
[all...]
H A Dbind.h193 template <class _Fp, class _BoundArgs, size_t... _Indx, class _Args>
194 …PP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 typename __bind_return<_Fp, _BoundArgs, _Args>::type
195 __apply_functor(_Fp& __f, _BoundArgs& __bound_args, __tuple_indices<_Indx...>, _Args&& __args) {
220 template <class... _Args>
221 …_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 typename __bind_return<_Fd, _Td, tuple<_Args&&…
222 operator()(_Args&&... __args) {
223 …std::__apply_functor(__f_, __bound_args_, __indices(), tuple<_Args&&...>(std::forward<_Args>(__arg…
226 template <class... _Args>
228 typename __bind_return<const _Fd, const _Td, tuple<_Args&&...> >::type
229 operator()(_Args&&... __args) const {
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__type_traits/
H A Dinvoke.h93 template <class... _Args>
94 __nat __invoke(_Args&&... __args);
99 template <class _Fp, class _A0, class... _Args, class = __enable_if_bullet1<_Fp, _A0> >
101 decltype((std::declval<_A0>().*std::declval<_Fp>())(std::declval<_Args>()...))
102 __invoke(_Fp&& __f, _A0&& __a0, _Args&&... __args)
103 _NOEXCEPT_(noexcept((static_cast<_A0&&>(__a0).*__f)(static_cast<_Args&&>(__args)...)))
104 { return (static_cast<_A0&&>(__a0).*__f)(static_cast<_Args&&>(__args)...); }
106 template <class _Fp, class _A0, class... _Args, class = __enable_if_bullet2<_Fp, _A0> >
108 decltype((std::declval<_A0>().get().*std::declval<_Fp>())(std::declval<_Args>()...))
109 __invoke(_Fp&& __f, _A0&& __a0, _Args&&... __args)
[all …]
H A Dis_nothrow_constructible.h30 template < class _Tp, class... _Args>
32 : public integral_constant<bool, __is_nothrow_constructible(_Tp, _Args...)> {};
35 template <bool, bool, class _Tp, class... _Args>
38 template <class _Tp, class... _Args>
39 …__libcpp_is_nothrow_constructible</*is constructible*/ true, /*is reference*/ false, _Tp, _Args...>
40 : public integral_constant<bool, noexcept(_Tp(std::declval<_Args>()...))> {};
49 template <class _Tp, bool _IsReference, class... _Args>
50 struct __libcpp_is_nothrow_constructible</*is constructible*/ false, _IsReference, _Tp, _Args...> :…
53 template <class _Tp, class... _Args>
55 : __libcpp_is_nothrow_constructible<is_constructible<_Tp, _Args...>::value,
[all …]
H A Ddisjunction.h43 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;
/freebsd/contrib/llvm-project/libcxx/include/__ranges/
H A Dto.h77 template <class _Container, class _Range, class... _Args>
81 constructible_from<_Container, iterator_t<_Range>, sentinel_t<_Range>, _Args...>;
87 template <class _Container, input_range _Range, class... _Args>
89 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr _Container to(_Range&& __range, _Args&&... __args) { in to()
100 if constexpr (constructible_from<_Container, _Range, _Args...>) { in to()
101 return _Container(std::forward<_Range>(__range), std::forward<_Args>(__args)...); in to()
105 else if constexpr (constructible_from<_Container, from_range_t, _Range, _Args...>) { in to()
106 return _Container(from_range, std::forward<_Range>(__range), std::forward<_Args>(__args)...); in to()
110 else if constexpr (__constructible_from_iter_pair<_Container, _Range, _Args...>) { in to()
111 … return _Container(ranges::begin(__range), ranges::end(__range), std::forward<_Args>(__args)...); in to()
[all …]
H A Dmovable_box.h60 template <class... _Args>
61 requires is_constructible_v<_Tp, _Args...>
62 _LIBCPP_HIDE_FROM_ABI constexpr explicit __movable_box(in_place_t, _Args&&... __args) noexcept( in __movable_box()
63 is_nothrow_constructible_v<_Tp, _Args...>) in __movable_box()
64 : __val_(in_place, std::forward<_Args>(__args)...) {} in __movable_box()
168 template <class... _Args>
169 _LIBCPP_HIDE_FROM_ABI constexpr explicit __movable_box_holder(in_place_t, _Args&&... __args) in __movable_box_holder()
170 : __val_(std::forward<_Args>(__args)...) {} in __movable_box_holder()
178 template <class... _Args>
179 _LIBCPP_HIDE_FROM_ABI constexpr explicit __movable_box_holder(in_place_t, _Args&&... __args)
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__format/
H A Dformat_functions.h68 template <class _Context = format_context, class... _Args>
69 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI __format_arg_store<_Context, _Args...> make_format_args(_Args&.… in make_format_args()
70 return std::__format_arg_store<_Context, _Args...>(__args...); in make_format_args()
74 template <class... _Args>
75 …] _LIBCPP_HIDE_FROM_ABI __format_arg_store<wformat_context, _Args...> make_wformat_args(_Args&... … in make_wformat_args()
76 return std::__format_arg_store<wformat_context, _Args...>(__args...); in make_wformat_args()
347 template <class _Cp, class... _Args>
365 template <class _CharT, class... _Args>
370 __format::__vformat_to(basic_format_parse_context<_CharT>{__str_, sizeof...(_Args)},
371 _Context{__types_.data(), __handles_.data(), sizeof...(_Args)});
[all …]
H A Dformatter_tuple.h38 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()
88 format(conditional_t<(formattable<const _Args, _CharT> && ...), const _Tuple&, _Tuple&> __tuple, in format()
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>
[all …]
H A Dformat_args.h31 template <class... _Args>
32 …_LIBCPP_HIDE_FROM_ABI basic_format_args(const __format_arg_store<_Context, _Args...>& __store) noe… in basic_format_args()
33 : __size_(sizeof...(_Args)) { in basic_format_args()
34 if constexpr (sizeof...(_Args) != 0) { in basic_format_args()
35 if constexpr (__format::__use_packed_format_arg_store(sizeof...(_Args))) { in basic_format_args()
71 template <class _Context, class... _Args>
72 basic_format_args(__format_arg_store<_Context, _Args...>) -> basic_format_args<_Context>;
/freebsd/contrib/llvm-project/libcxx/include/experimental/
H A Dtype_traits89 template <class _Fn, class ..._Args>
90 class _LIBCPP_TEMPLATE_VIS raw_invocation_type<_Fn(_Args...)>;
95 template <class _Fn, class ..._Args>
96 class _LIBCPP_TEMPLATE_VIS invokation_type<_Fn(_Args...)>;
115 template <class _Default, class _AlwaysVoid, template <class...> class _Op, class... _Args>
121 template <class _Default, template <class...> class _Op, class... _Args>
122 struct _DETECTOR<_Default, void_t<_Op<_Args...>>, _Op, _Args...> {
124 using type = _Op<_Args...>;
127 template <template <class...> class _Op, class... _Args>
128 using is_detected = typename _DETECTOR<nonesuch, void, _Op, _Args...>::value_t;
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__memory/
H A Dallocator_arg_t.h40 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...>::value> {};
51 template <class _Tp, class _Allocator, class... _Args>
53 __user_alloc_construct_impl(integral_constant<int, 0>, _Tp* __storage, const _Allocator&, _Args&&... __args) {
54 new (__storage) _Tp(std::forward<_Args>(__args)...);
58 template <class _Tp, class _Allocator, class... _Args> in __user_alloc_construct_impl()
60 __user_alloc_construct_impl(integral_constant<int, 1>, _Tp* __storage, const _Allocator& __a, _Args&&... __args) {
61 new (__storage) _Tp(allocator_arg, __a, std::forward<_Args>(__arg
[all...]
H A Dout_ptr.h35 template <class _Smart, class _Pointer, class... _Args>
37 static_assert(!__is_specialization_v<_Smart, shared_ptr> || sizeof...(_Args) > 0,
41 _LIBCPP_HIDE_FROM_ABI explicit out_ptr_t(_Smart& __smart, _Args... __args) in out_ptr_t()
42 : __s_(__smart), __a_(std::forward<_Args>(__args)...), __p_() { in out_ptr_t()
62 if constexpr (__resettable_smart_pointer_with_args<_Smart, _Pointer, _Args...>) { in ~out_ptr_t()
63 …&](auto&&... __args) { __s_.reset(static_cast<_SmartPtr>(__p_), std::forward<_Args>(__args)...); }, in ~out_ptr_t()
66 static_assert(is_constructible_v<_Smart, _SmartPtr, _Args...>, in ~out_ptr_t()
68 …auto&&... __args) { __s_ = _Smart(static_cast<_SmartPtr>(__p_), std::forward<_Args>(__args)...); }, in ~out_ptr_t()
85 tuple<_Args...> __a_;
89 template <class _Pointer = void, class _Smart, class... _Args>
[all …]
H A Dinout_ptr.h36 template <class _Smart, class _Pointer, class... _Args>
41 _LIBCPP_HIDE_FROM_ABI explicit inout_ptr_t(_Smart& __smart, _Args... __args) in inout_ptr_t()
42 : __s_(__smart), __a_(std::forward<_Args>(__args)...), __p_([&__smart] { in inout_ptr_t()
68 …auto&&... __args) { __s_ = _Smart(static_cast<_SmartPtr>(__p_), std::forward<_Args>(__args)...); }, in ~inout_ptr_t()
70 } else if constexpr (__resettable_smart_pointer_with_args<_Smart, _Pointer, _Args...>) { in ~inout_ptr_t()
71 …&](auto&&... __args) { __s_.reset(static_cast<_SmartPtr>(__p_), std::forward<_Args>(__args)...); }, in ~inout_ptr_t()
74 static_assert(is_constructible_v<_Smart, _SmartPtr, _Args...>, in ~inout_ptr_t()
76 …auto&&... __args) { __s_ = _Smart(static_cast<_SmartPtr>(__p_), std::forward<_Args>(__args)...); }, in ~inout_ptr_t()
93 tuple<_Args...> __a_;
97 template <class _Pointer = void, class _Smart, class... _Args>
[all …]
H A Duses_allocator_construction.h43 template <class _Type, class _Alloc, class... _Args, __enable_if_t<!__is_cv_std_pair<_Type>, int> =…
45 __uses_allocator_construction_args(const _Alloc& __alloc, _Args&&... __args) noexcept { in __uses_allocator_construction_args()
46 …if constexpr (!uses_allocator_v<remove_cv_t<_Type>, _Alloc> && is_constructible_v<_Type, _Args...>… in __uses_allocator_construction_args()
47 return std::forward_as_tuple(std::forward<_Args>(__args)...); in __uses_allocator_construction_args()
49 is_constructible_v<_Type, allocator_arg_t, const _Alloc&, _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()
175 template <class _Type, class _Alloc, class... _Args>
176 _LIBCPP_HIDE_FROM_ABI constexpr _Type __make_obj_using_allocator(const _Alloc& __alloc, _Args&&... …
[all …]
H A Dconstruct_at.h38 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_SINCE_CXX20 _Tp* __construct_at(_Tp* __location, _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/__expected/
H A Dexpected.h105 template <class... _Args>
106 …_LIBCPP_HIDE_FROM_ABI constexpr explicit __conditional_no_unique_address(in_place_t, _Args&&... __…
107 : __v(std::forward<_Args>(__args)...) {}
109 template <class _Func, class... _Args>
111 __conditional_no_unique_address_invoke_tag, _Func&& __f, _Args&&... __args)
112 : __v(std::invoke(std::forward<_Func>(__f), std::forward<_Args>(__args)...)) {}
119 template <class... _Args>
120 …_LIBCPP_HIDE_FROM_ABI constexpr explicit __conditional_no_unique_address(in_place_t, _Args&&... __…
121 : __v(std::forward<_Args>(__args)...) {}
123 template <class _Func, class... _Args>
[all …]
H A Dunexpected.h77 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 Djthread.h46 template <class _Fun, class... _Args>
47 _LIBCPP_HIDE_FROM_ABI explicit jthread(_Fun&& __fun, _Args&&... __args) in jthread()
50 …__thread_(__init_thread(__stop_source_, std::forward<_Fun>(__fun), std::forward<_Args>(__args)...)… in jthread()
52 static_assert((is_constructible_v<decay_t<_Args>, _Args> && ...)); in jthread()
53 static_assert(is_invocable_v<decay_t<_Fun>, decay_t<_Args>...> || in jthread()
54 is_invocable_v<decay_t<_Fun>, stop_token, decay_t<_Args>...>); in jthread()
115 template <class _Fun, class... _Args>
116 …_LIBCPP_HIDE_FROM_ABI static thread __init_thread(const stop_source& __ss, _Fun&& __fun, _Args&&..… in __init_thread()
117 if constexpr (is_invocable_v<decay_t<_Fun>, stop_token, decay_t<_Args>...>) { in __init_thread()
118 return thread(std::forward<_Fun>(__fun), __ss.get_token(), std::forward<_Args>(__args)...); in __init_thread()
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__pstl/
H A Dhandle_exception.h28 template <class _BackendFunction, class... _Args>
29 _LIBCPP_HIDE_FROM_ABI auto __handle_exception_impl(_Args&&... __args) noexcept { in __handle_exception_impl()
30 return _BackendFunction{}(std::forward<_Args>(__args)...); in __handle_exception_impl()
43 template <class _BackendFunction, class... _Args>
44 _LIBCPP_HIDE_FROM_ABI auto __handle_exception(_Args&&... __args) { in __handle_exception()
45 auto __result = __pstl::__handle_exception_impl<_BackendFunction>(std::forward<_Args>(__args)...); in __handle_exception()
/freebsd/contrib/llvm-project/libcxx/include/__utility/
H A Dno_destroy.h35 template <class... _Args>
36 _LIBCPP_HIDE_FROM_ABI explicit __no_destroy(_Args&&... __args) { in __no_destroy()
37 ::new ((void*)__obj_) _Tp(std::forward<_Args>(__args)...); in __no_destroy()
40 template <class... _Args>
41 _LIBCPP_HIDE_FROM_ABI _Tp& __emplace(_Args&&... __args) { in __emplace()
42 return *(::new ((void*)__obj_) _Tp(std::forward<_Args>(__args)...)); in __emplace()
/freebsd/contrib/llvm-project/libcxx/include/__concepts/
H A Dinvocable.h26 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 equality preserving in requires()
33 template <class _Fn, class... _Args>
34 concept regular_invocable = invocable<_Fn, _Args...>;

1234