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

views::interleave's range adaptor object type (non-closure). More...

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

Public Member Functions

template<std::ranges::forward_range inserted_rng_t, std::integral size_type>
constexpr auto operator() (size_type const size, inserted_rng_t &&i) const noexcept
 Store the argument and return a range adaptor closure object.
 
template<std::ranges::range urng_t, std::ranges::range inserted_rng_t, std::integral size_type>
constexpr auto operator() (urng_t &&urange, size_type const size, inserted_rng_t &&i) const noexcept
 Call the view's constructor with the underlying view as argument.
 

Detailed Description

views::interleave's range adaptor object type (non-closure).

Member Function Documentation

◆ operator()()

template<std::ranges::range urng_t, std::ranges::range inserted_rng_t, std::integral size_type>
constexpr auto seqan3::detail::interleave_fn::operator() ( urng_t &&  urange,
size_type const  size,
inserted_rng_t &&  i 
) const
inlineconstexprnoexcept

Call the view's constructor with the underlying view as argument.

Parameters
[in]urangeThe input range to process. Must model std::ranges::forward_range and std::ranges::viewable_range.
[in]iThe inserted range to process. Must model std::ranges::forward_range.
[in]sizeThe step size for insertion into the input range.
Returns
A range of with the inserted range interleaved into the underlying range at the specified intervals.

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