37 constexpr
auto operator()(
size_t drop_size)
const noexcept
39 return detail::adaptor_from_functor{*
this, drop_size};
45 template <std::ranges::Range urng_t>
46 constexpr
auto operator()(urng_t && urange,
size_t drop_size)
const 49 "The view::drop adaptor can only be passed ViewableRanges, i.e. Views or &-to-non-View.");
51 [[maybe_unused]]
size_t new_size = -1;
63 return urange.substr(drop_size);
66 else if constexpr (is_type_specialisation_of_v<remove_cvref_t<urng_t>,
std::basic_string> &&
72 else if constexpr (ForwardingRange<urng_t> &&
79 else if constexpr (ForwardingRange<urng_t> &&
171 inline constexpr
auto drop = detail::drop_fn{};
Specifies requirements of a Range type whose elements occupy adjacent locations in memory...
::ranges::subrange< it_t, sen_t, k > subrange
Create a view from a pair of iterator and sentinel.
Definition: ranges:339
Provides exceptions used in the I/O module.
Provides C++20 additions to the <iterator> header.
Provides seqan3::type_list and auxiliary type traits.
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
::ranges::size size
Alias for ranges::size. Obtains the size of a range whose size can be calculated in constant time...
Definition: ranges:189
::ranges::data data
Alias for ranges::data. Returns a pointer the block of data of a ContiguousRange. ...
Definition: ranges:184
Additional non-standard concepts for ranges.
Auxiliary header for the view submodule .
::ranges::iterator_t iterator_t
Alias for ranges::iterator_t. Obtains the iterator type of a range.
Definition: ranges:204
Adaptations of concepts from the Ranges TS.
::ranges::begin begin
Alias for ranges::begin. Returns an iterator to the beginning of a range.
Definition: ranges:174
The SeqAn3 namespace for views.
Provides std::span from the C++20 standard library.
Specifies requirements of a Range type for which begin returns a type that models std::RandomAccessIt...
Specifies the requirements of a Range type that is either a std::ranges::View or an lvalue-reference...
Definition: aligned_sequence_concept.hpp:35
Provides C++20 additions to the type_traits header.
Specifies the requirements of a Range type that knows its size in constant time with the size functio...