Function object to convert a std::ranges::input_range to a fully defined container.
More...
#include <seqan3/utility/range/to.hpp>
|
template<std::ranges::input_range rng_t, typename... args_t> |
constexpr auto | operator() (rng_t &&rng, args_t &&... args) const |
| Converts a template-template into a container.
|
|
|
template<std::ranges::input_range rng_t>
requires std::convertible_to<std::ranges::range_reference_t<rng_t>, std::ranges::range_value_t<container_t>> |
auto | impl (rng_t &&rng, container_t &container) const |
| Copies a range into a container.
|
|
template<std::ranges::input_range rng_t>
requires std::ranges::input_range<std::ranges::range_value_t<rng_t>> |
auto | impl (rng_t &&rng, container_t &container) const |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
template<typename container_t>
requires (!std::ranges::view<container_t>)
struct seqan3::detail::to_fn< container_t >
Function object to convert a std::ranges::input_range to a fully defined container.
◆ impl()
template<typename container_t >
template<std::ranges::input_range rng_t>
requires std::convertible_to<std::ranges::range_reference_t<rng_t>, std::ranges::range_value_t<container_t>>
Copies a range into a container.
- Template Parameters
-
rng_t | Type of the range. |
container_t | Type of the target container. |
◆ operator()()
template<typename container_t >
template<std::ranges::input_range rng_t, typename... args_t>
constexpr auto seqan3::detail::to_fn< container_t >::operator() |
( |
rng_t && |
rng, |
|
|
args_t &&... |
args |
|
) |
| const |
|
inlineconstexpr |
Converts a template-template into a container.
- Template Parameters
-
rng_t | The type of the range being processed. |
args_t | The types of the arguments for the constructor. |
- Parameters
-
rng | The range being processed. |
args | Arguments to pass to the constructor of the container. |
The documentation for this struct was generated from the following file: