View adaptor definition for views::type_reduce.
More...
#include <seqan3/utility/views/type_reduce.hpp>
|
template<std::ranges::range urng_t> |
static constexpr auto | impl (urng_t &&urange) |
| Type erase if possible and delegate to std::views::all otherwise.
|
|
|
friend | base_t |
| Befriend the base class so it can call impl().
|
|
|
constexpr auto | operator() (urng_t &&urange) && |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
constexpr auto | operator() (urng_t &&urange) const & |
| Function-style overload for ranges.
|
|
constexpr | adaptor_base (adaptor_base const &) noexcept=default |
| Defaulted.
|
|
constexpr | adaptor_base (adaptor_base &&) noexcept=default |
| Defaulted.
|
|
constexpr | adaptor_base (stored_args_ts... args) noexcept(noexcept(std::tuple< stored_args_ts... >{ std::forward< stored_args_ts >(args)...})) |
| Constructor with possible arguments; becomes a default constructor for adaptors without args.
|
|
constexpr adaptor_base & | operator= (adaptor_base const &) noexcept=default |
| Defaulted.
|
|
constexpr adaptor_base & | operator= (adaptor_base &&) noexcept=default |
| Defaulted.
|
|
| ~adaptor_base () noexcept=default |
| Defaulted.
|
|
View adaptor definition for views::type_reduce.
◆ impl()
template<std::ranges::range urng_t>
static constexpr auto seqan3::detail::type_reduce_fn::impl |
( |
urng_t && |
urange | ) |
|
|
inlinestaticconstexprprivate |
Type erase if possible and delegate to std::views::all otherwise.
- Returns
- An instance of std::span, std::basic_string_view, std::ranges::subrange or std::views::all's return type.
The documentation for this class was generated from the following file: