24 template<uint32_t T_byte = std::numeric_limits<uint32_t>::max()>
36 template<
typename T_Type>
37 static consteval uint32_t
get()
40 if constexpr(T_byte == std::numeric_limits<uint32_t>::max())
41 return static_cast<uint32_t
>(
alignof(T_Type));
45 value >=
alignof(T_Type),
46 "tried to use alignment that is smaller than the alignment of the type it's for");
52 static consteval uint32_t
get()
57 static constexpr uint32_t value = T_byte;
64 template<
typename T_Type>
69 template<u
int32_t T_
byte>
75 template<
typename T_Type>
Concept to check for an alignment object.
constexpr bool isAlignment_v
Strongly typed and constexpr representation of a byte-alignment of memory.
static consteval uint32_t get()
Get the byte-alignment of a given type when using this alignment.