42 struct repeat_n_view :
view_facade<repeat_n_view<Val>, finite>
46 semiregular_box_t<Val> value_;
57 cursor(Val
const & value, std::ptrdiff_t n)
58 : value_(std::addressof(value))
61 Val
const & read()
const
69 bool equal(cursor
const & that)
const
75 RANGES_EXPECT(0 != n_);
82 void advance(std::ptrdiff_t n)
86 std::ptrdiff_t distance_to(cursor
const & that)
const
91 cursor begin_cursor()
const
97 repeat_n_view() =
default;
98 constexpr repeat_n_view(Val value, std::ptrdiff_t n)
99 : value_(detail::move(value))
100 , n_((RANGES_EXPECT(0 <= n), n))
102 constexpr std::size_t size()
const
104 return static_cast<std::size_t
>(n_);
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