65template <
typename out_t>
66inline constexpr auto convert = std::views::transform(
67 [](
auto && in) ->
out_t
70 "The reference type of the input to views::convert is not convertible to out_t.");
72 if constexpr (std::convertible_to<
decltype(in) &&,
out_t>)
73 return std::forward<decltype(in)>(in);
75 return static_cast<out_t>(std::forward<decltype(in)>(in));
constexpr auto convert
A view that converts each element in the input range (implicitly or via static_cast).
Definition utility/views/convert.hpp:66
Checks whether from can be explicitly converted to to.
The SeqAn namespace for views.
Definition char_strictly_to.hpp:19
constexpr auto const & get(configuration< configs_t... > const &config) noexcept
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition configuration.hpp:412
Provides concepts that do not have equivalents in C++20.