My Project
Classes
bsl::aligned_storage< GUARD, N, A > Class Template Referencefinal

Implements the std::aligned_storage interface. The only real difference is we use "m_data" instead of "data" to represent the member variable name. More...

#include <aligned_storage.hpp>

Classes

class  type
 Implements the std::aligned_storage type interface. More...
 

Detailed Description

template<typename GUARD, bsl::uintmax N, bsl::uintmax A = 0>
class bsl::aligned_storage< GUARD, N, A >

Implements the std::aligned_storage interface. The only real difference is we use "m_data" instead of "data" to represent the member variable name.

#include <bsl/debug.hpp>
namespace bsl
{
inline void
example_aligned_storage_overview() noexcept
{
if (sizeof(page_type) >= BSL_PAGE_SIZE) {
bsl::print() << "success\n";
}
}
}
Template Parameters
GUARDused to prevent you from creating an aligned_storage and not an aligned_storage_t
Nthe size of the storage buffer in bytes
Athe alignment of the sotrage buffer. This defaults to 0, which means this is "unaligned" by default.

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