17namespace seqan3::detail
33 template <
typename value_t>
34 constexpr auto operator()(value_t && value,
size_t const count)
const
36 static_assert(std::copy_constructible<value_t>,
"The value passed to repeat_n must be copy constructible.");
38 return views::repeat(std::forward<value_t>(value)) | detail::take_exactly(count);
88inline constexpr auto repeat_n = detail::repeat_n_fn{};
constexpr detail::repeat_fn repeat
A view factory that repeats a given value infinitely.
Definition repeat.hpp:344
constexpr auto repeat_n
A view factory that repeats a given value n times.
Definition repeat_n.hpp:88
The SeqAn namespace for views.
Definition char_strictly_to.hpp:19
Provides the seqan3::views::repeat.
Provides seqan3::views::take_exactly and seqan3::views::take_exactly_or_throw.