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

View adaptor definition for views::slice. More...

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

Public Member Functions

constexpr auto operator() (ptrdiff_t begin_pos, ptrdiff_t end_pos) const noexcept
 Store the arguments and return a range adaptor closure object.
 
template<std::ranges::viewable_range urng_t>
constexpr auto operator() (urng_t &&urange, std::ranges::range_difference_t< urng_t > begin_pos, std::ranges::range_difference_t< urng_t > end_pos) const
 Call the view's constructor with the underlying view as argument.
 

Detailed Description

View adaptor definition for views::slice.

Member Function Documentation

◆ operator()()

template<std::ranges::viewable_range urng_t>
constexpr auto seqan3::detail::slice_fn::operator() ( urng_t &&  urange,
std::ranges::range_difference_t< urng_t >  begin_pos,
std::ranges::range_difference_t< urng_t >  end_pos 
) const
inlineconstexpr

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

Returns
An instance of seqan3::detail::view_slice.

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