14 #ifndef RANGES_V3_UTILITY_COPY_HPP
15 #define RANGES_V3_UTILITY_COPY_HPP
21 #include <range/v3/utility/static_const.hpp>
23 #include <range/v3/detail/prologue.hpp>
34 requires constructible_from<detail::decay_t<T>, T>)
35 constexpr
auto operator()(T && t)
const -> detail::decay_t<T>
37 return static_cast<T &&
>(t);
43 friend constexpr
auto operator|(T && t,
copy_fn)
44 -> CPP_broken_friend_ret(detail::decay_t<T>)(
45 requires constructible_from<detail::decay_t<T>, T>)
47 return static_cast<T &&
>(t);
58 #include <range/v3/detail/epilogue.hpp>
RANGES_INLINE_VARIABLE(detail::to_container_fn< detail::from_range< std::vector >>, to_vector) template< template< typename... > class ContT > auto to(RANGES_HIDDEN_DETAIL(detail
For initializing a container of the specified type with the elements of an Range.
Definition: conversion.hpp:399
Definition: range_fwd.hpp:492