SeqAn3 3.2.0-rc.1
The Modern C++ library for sequence analysis.
seqan3::detail::chunk_fn Struct Reference

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

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

Public Member Functions

constexpr auto operator() (uint16_t const chunk_size) const
 Store the chunk_size and return a range adaptor closure object.
 
template<std::ranges::range underlying_range_t>
constexpr auto operator() (underlying_range_t &&urange, uint16_t const chunk_size) const
 Call the view's constructor with the underlying range and a chunk_size as argument. More...
 

Detailed Description

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

Member Function Documentation

◆ operator()()

template<std::ranges::range underlying_range_t>
constexpr auto seqan3::detail::chunk_fn::operator() ( underlying_range_t &&  urange,
uint16_t const  chunk_size 
) const
inlineconstexpr

Call the view's constructor with the underlying range and a chunk_size as argument.

Parameters
[in]urangeThe range to process. Must model std::ranges::input_range.
[in]chunk_sizeThe chunk size, e.g. the length of the subrange returned by this iterator.
Returns
A range of subranges.

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