E.V.E
v2023.02.15
Loading...
Searching...
No Matches
◆
translate_into()
template<typename Dst, translatable_into< Dst > Src>
Dst eve::translate_into
(
Src const &
val
,
as
< Dst >
)
constexpr
Parameters
val
The source value to translate
Template Parameters
Dst
The destination type to translate into
enum class
A :
int
{ };
enum class
B :
int
{ };
A a;
B b =
eve::translate_into
(a, eve::as<B>{});
eve::translate_into
constexpr Dst translate_into(Src const &val, as< Dst >)
Performs a translation between two types that are part of the same translation tree.
Definition
as_translation.hpp:127
eve