39 constexpr
auto operator()(ptrdiff_t begin_pos, ptrdiff_t end_pos)
const noexcept
47 template <std::ranges::viewable_range urng_t>
49 std::ranges::range_difference_t<urng_t> begin_pos,
50 std::ranges::range_difference_t<urng_t> end_pos)
const
52 if constexpr (std::ranges::sized_range<urng_t>)
54 using position_t = std::ranges::range_difference_t<urng_t>;
59 if (end_pos < begin_pos)
60 throw std::invalid_argument{
"end_pos argument to seqan3::views::slice must be >= the begin_pos argument."};
Template for range adaptor closure objects that store arguments and wrap a proto-adaptor.
Definition: detail.hpp:371
Provides seqan3::views::drop.
constexpr size_t size
The size of a type pack.
Definition: traits.hpp:150
constexpr auto drop
A view adaptor that returns all elements after n from the underlying range (or an empty range if the ...
Definition: drop.hpp:172
constexpr auto take
A view adaptor that returns the first size elements from the underlying range (or less if the underly...
Definition: take.hpp:611
constexpr auto slice
A view adaptor that returns a half-open interval on the underlying range.
Definition: slice.hpp:145
Provides exceptions used in the I/O module.
Provides C++20 additions to the <iterator> header.
The internal SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:29
The SeqAn namespace for views.
Definition: async_input_buffer.hpp:343
Additional non-standard concepts for ranges.
Auxiliary header for the views submodule .
Adaptations of concepts from the Ranges TS.
Provides std::span from the C++20 standard library.
View adaptor definition for views::slice.
Definition: slice.hpp:37
constexpr auto operator()(ptrdiff_t begin_pos, ptrdiff_t end_pos) const noexcept
Store the arguments and return a range adaptor closure object.
Definition: slice.hpp:39
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.
Definition: slice.hpp:48
Provides seqan3::views::take.
Provides C++20 additions to the type_traits header.