19#include "lib/stdcompat/bit.h"
53template <
class T = u
intptr_t>
65 static_assert(std::is_integral_v<T> || std::is_enum_v<T>);
66 static_assert(
sizeof(T) <=
sizeof(uintptr_t));
67 return static_cast<T
>(raw_value());
72 uintptr_t raw_value()
const {
return cpp20::bit_cast<uintptr_t>(
this); }
Definition: linker_symbol.h:54
T value() const
Gets the value of this linker symbol, converted to the specified type.
Definition: linker_symbol.h:64
The Pigweed namespace.
Definition: alignment.h:27