39 : view_adaptor<delimit_view<Rng, Val>, Rng,
40 is_finite<Rng>::value ? finite : unknown>
46 struct sentinel_adaptor : adaptor_base
48 sentinel_adaptor() =
default;
49 sentinel_adaptor(Val value)
50 : value_(std::move(value))
52 template<
class I,
class S>
53 bool empty(I
const & it, S
const & last)
const
55 return it == last || *it == value_;
60 sentinel_adaptor end_adaptor()
const
66 delimit_view() =
default;
67 constexpr delimit_view(Rng rng, Val value)
68 : delimit_view::view_adaptor{std::move(rng)}
69 , value_(std::move(value))
90 template(
typename I_,
typename Val,
typename I = detail::decay_t<I_>)(
93 equality_comparable_with<Val, iter_reference_t<I>>)
94 constexpr auto operator()(I_ && begin_, Val value)
const
97 return {{
static_cast<I_ &&
>(begin_), {}}, std::move(value)};
100 template(
typename Rng,
typename Val)(
102 Val> AND equality_comparable_with<Val, range_reference_t<Rng>>)
103 constexpr auto operator()(Rng && rng, Val value)
const
106 return {all(
static_cast<Rng &&
>(rng)), std::move(value)};
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