39 struct const_view : view_adaptor<const_view<Rng>, Rng>
44 struct adaptor : adaptor_base
46 using CRng = meta::const_if_c<Const, Rng>;
47 using value_ = range_value_t<CRng>;
49 common_reference_t<value_ const &&, range_reference_t<CRng>>;
50 using rvalue_reference_ =
51 common_reference_t<value_ const &&, range_rvalue_reference_t<CRng>>;
54 requires Const && CPP_NOT(Other))
55 constexpr adaptor(adaptor<Other>)
62 noexcept(
noexcept(rvalue_reference_(ranges::iter_move(it))))
64 return ranges::iter_move(it);
67 adaptor<simple_view<Rng>()> begin_adaptor()
72 auto begin_adaptor()
const
73 -> CPP_ret(adaptor<true>)(
78 adaptor<simple_view<Rng>()> end_adaptor()
83 auto end_adaptor()
const
84 -> CPP_ret(adaptor<true>)(
91 const_view() =
default;
92 explicit const_view(Rng rng)
93 : const_view::view_adaptor{std::move(rng)}
96 constexpr auto CPP_fun(size)()(
99 return ranges::size(this->base());
102 constexpr auto CPP_fun(size)()(
const
105 return ranges::size(this->base());
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