E.V.E
v2023.02.15
Loading...
Searching...
No Matches

◆ translate_ptr()

template<_::scalar_pointer Ptr>
auto eve::translate_ptr ( Ptr ptr)
constexpr
Parameters
ptrThe pointer to translate
Returns
A pointer of the translated type
enum class E: int { };
E* ptr;
static_assert(std::same_as<decltype(eve::translate_ptr(ptr)), int*>);
constexpr auto translate_ptr(Ptr ptr)
Translates a pointer to get a pointer to the same value through its translated type.
Definition as_translation.hpp:92