yfast 0.6.1
Loading...
Searching...
No Matches
yfast::utils::aligned_ptr< N, T > Struct Template Reference

Public Member Functions

 aligned_ptr (std::uintptr_t value)
 aligned_ptr (T *ptr=nullptr)
template<typename... Args>
 aligned_ptr (T *ptr, Args... args)
T * get_ptr () const
bool get_bit (unsigned int n) const
void set_ptr (T *ptr)
void set_bit (unsigned int n, bool bit)
void set_bit (unsigned int n)
void clear_bit (unsigned int n)

Public Attributes

std::uintptr_t value

Static Public Attributes

static constexpr auto Bits = N
static constexpr std::uintptr_t BIT_MASK = (1 << N) - 1
static constexpr std::uintptr_t PTR_MASK = ~BIT_MASK

The documentation for this struct was generated from the following file: