Kicking it Olde Sküül! Burgerlib on Github Follow Olde Sküül on Twitter Burgerbecky on LinkedIn Burgerbecky on LinkedIn
Loading...
Searching...
No Matches
Burger::alignment_of< T > Struct Template Reference

Determine the alignment of an object. More...

Inheritance diagram for Burger::alignment_of< T >:
Collaboration diagram for Burger::alignment_of< T >:

Additional Inherited Members

- Public Types inherited from Burger::integral_constant< uintptr_t, alignof(T)>
typedef uintptr_t value_type
 Encapsulated type.
 
typedef integral_constant< uintptr_t, _Value > type
 Instantiated type of this template.
 
- Public Member Functions inherited from Burger::integral_constant< uintptr_t, alignof(T)>
constexpr operator uintptr_t () const noexcept
 Function to return the encapsulated value.
 
constexpr uintptr_t operator() () const noexcept
 Function to return the encapsulated value.
 
- Static Public Attributes inherited from Burger::integral_constant< uintptr_t, alignof(T)>
static constexpr const uintptr_t value
 Encapsulated value.
 

Detailed Description

template<class T>
struct Burger::alignment_of< T >

Determine the alignment of an object.


A template to obtain the alignment value of an object.

Template Parameters
TType of object to test

Example of use:

printf("Alignment of int is %u", Burger::alignment_of<int>::value);
Determine the alignment of an object.
Definition burger.h:3275
See also
integral_constant