SeqAn3 3.4.0-rc.1
The Modern C++ library for sequence analysis.
Loading...
Searching...
No Matches
seqan3::detail::repeat_n_fn Struct Reference

The underlying type of seqan3::views::repeat_n. More...

#include <seqan3/utility/views/repeat_n.hpp>

Public Member Functions

template<typename value_t >
constexpr auto operator() (value_t &&value, size_t const count) const
 Creates a range of size count, where each element equals value.
 

Detailed Description

The underlying type of seqan3::views::repeat_n.

Under the hood this delegates to views::repeat(value) | detail::take_exactly(count).

Member Function Documentation

◆ operator()()

template<typename value_t >
constexpr auto seqan3::detail::repeat_n_fn::operator() ( value_t &&  value,
size_t const  count 
) const
inlineconstexpr

Creates a range of size count, where each element equals value.

Template Parameters
value_tThe type of value to repeat; must be std::copy_constructible.
Parameters
[in]valueThe value to repeat.
[in]countThe number of times to repeat value.
Returns
A range of size count, where each element equals value.

The documentation for this struct was generated from the following file:
Hide me