Callable object that converts eve constant or just a value to a type. Useful in a generic context.
Required header: #include <eve/function/as_value.hpp>
Member | Effect |
operator() | Computes the resulting value |
tempate < typename From, value T > T operator()( From from,
as<T> const & t)
const noexcept;
Lightweight type-wrapper.
Definition: as.hpp:29
Parameters
From: either smth convertible to T or one of eve/constant
Return value
T equivalent of from