19#include "lib/stdcompat/bit.h"
51template <
class T = u
intptr_t>
63 static_assert(std::is_integral_v<T> || std::is_enum_v<T>);
64 static_assert(
sizeof(T) <=
sizeof(uintptr_t));
65 return static_cast<T
>(raw_value());
70 uintptr_t raw_value()
const {
return cpp20::bit_cast<uintptr_t>(
this); }
Definition: linker_symbol.h:52
T value() const
Gets the value of this linker symbol, converted to the specified type.
Definition: linker_symbol.h:62
Provides basic helpers for reading and writing UTF-8 encoded strings.
Definition: alignment.h:27