Lines Matching defs:to

86 // `ranges::to` base template -- the `_Container` type is a simple type template parameter.
89 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr _Container to(_Range&& __range, _Args&&... __args) {
127 static_assert(__always_false<_Container>, "ranges::to: unable to convert to the given container type.");
132 return ranges::to<_Container>(
134 return ranges::to<range_value_t<_Container>>(std::forward<decltype(__elem)>(__elem));
139 static_assert(__always_false<_Container>, "ranges::to: unable to convert to the given container type.");
186 "ranges::to: unable to deduce the container type from the template template argument.");
193 // `ranges::to` specialization -- `_Container` is a template template parameter requiring deduction to figure out the
196 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr auto to(_Range&& __range, _Args&&... __args) {
198 return ranges::to<_DeduceExpr>(std::forward<_Range>(__range), std::forward<_Args>(__args)...);
201 // Range adaptor closure object 1 -- wrapping the `ranges::to` version where `_Container` is a simple type template
205 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr auto to(_Args&&... __args) {
213 /**/ ranges::to<_Container>(std::forward<_Range>(__range), std::forward<_Tail>(__tail)...);
215 { return ranges::to<_Container>(std::forward<_Range>(__range), std::forward<_Tail>(__tail)...); };
220 // Range adaptor closure object 2 -- wrapping the `ranges::to` version where `_Container` is a template template
223 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr auto to(_Args&&... __args) {
229 /**/ ranges::to<_DeducedExpr>(std::forward<_Range>(__range), std::forward<_Tail>(__tail)...);
232 return ranges::to<_DeducedExpr>(std::forward<_Range>(__range), std::forward<_Tail>(__tail)...);