39 constexpr
auto operator()(ptrdiff_t begin_pos, ptrdiff_t end_pos)
const noexcept
41 return detail::adaptor_from_functor{*
this, begin_pos, end_pos};
47 template <std::ranges::ViewableRange urng_t>
48 constexpr
auto operator()(urng_t && urange, ptrdiff_t begin_pos, ptrdiff_t end_pos)
const 56 if (end_pos < begin_pos)
57 throw std::invalid_argument{
"end_pos argument to seqan3::view::slice must be >= the begin_pos argument."};
144 inline constexpr
auto slice = detail::slice_fn{};
Provides exceptions used in the I/O module.
Provides C++20 additions to the <iterator> header.
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:171
Provides seqan3::view::take.
::ranges::size size
Alias for ranges::size. Obtains the size of a range whose size can be calculated in constant time...
Definition: ranges:189
constexpr auto slice
A view adaptor that returns a half-open interval on the underlying range.
Definition: slice.hpp:144
Specifies the requirements of a Range type that knows its size in constant time with the size functio...
Additional non-standard concepts for ranges.
Auxiliary header for the view submodule .
Adaptations of concepts from the Ranges TS.
The SeqAn3 namespace for views.
Provides std::span from the C++20 standard library.
Definition: aligned_sequence_concept.hpp:35
Provides C++20 additions to the type_traits header.
Provides seqan3::view::drop.
auto constexpr take
A view adaptor that returns the first size elements from the underlying range (or less if the underly...
Definition: take.hpp:596