lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
Public Member Functions
lean::memory::stack_aligned< Alignment > Struct Template Reference

Aligns derived classes according to the given alignment template argument when instances are created on the stack. More...

#include <alignment.h>

Inheritance diagram for lean::memory::stack_aligned< Alignment >:
lean::memory::aligned< Alignment, Heap >

List of all members.

Public Member Functions

 LEAN_STATIC_ASSERT_MSG_ALT (Alignment &~Alignment,"Alignment is required to be power of two.", Alignment_is_required_to_be_power_of_two)

Detailed Description

template<size_t Alignment>
struct lean::memory::stack_aligned< Alignment >

Aligns derived classes according to the given alignment template argument when instances are created on the stack.

Remarks:
MSC adds padding to make the size of aligned structures a multiple of their alignment, make sure to specify this base class first to allow for empty base class optimization.

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