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
valThe source value to translate
Template Parameters
DstThe destination type to translate into
enum class A : int { };
enum class B : int { };
A a;
B b = eve::translate_into(a, eve::as<B>{});
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