 |
SeqAn3
3.0.1
The Modern C++ library for sequence analysis.
|
|
Go to the documentation of this file.
28 namespace seqan3::detail
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::viewable_range urng_t>
48 constexpr
auto operator()(urng_t && urange, ptrdiff_t begin_pos, ptrdiff_t end_pos)
const
50 if constexpr (std::ranges::sized_range<urng_t>)
56 if (end_pos < begin_pos)
57 throw std::invalid_argument{
"end_pos argument to seqan3::views::slice must be >= the begin_pos argument."};
141 inline constexpr
auto slice = detail::slice_fn{};
The SeqAn namespace for views.
Definition: view_to_simd.hpp:672
Provides std::span from the C++20 standard library.
Provides seqan3::views::drop.
Provides C++20 additions to the type_traits header.
Provides C++20 additions to the <iterator> header.
Additional non-standard concepts for ranges.
Provides exceptions used in the I/O module.
constexpr auto take
A view adaptor that returns the first size elements from the underlying range (or less if the underly...
Definition: take.hpp:624
constexpr size_t size
The size of a type pack.
Definition: traits.hpp:116
Provides seqan3::views::take.
Adaptations of concepts from the Ranges TS.
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:168
constexpr auto slice
A view adaptor that returns a half-open interval on the underlying range.
Definition: slice.hpp:141
Auxiliary header for the views submodule .