xentara-plugin v1.2.1
The Xentara Plugin Framework
Loading...
Searching...
No Matches
xentara::memory::MemoryResource::BlockHandler::BlockTraits Class Reference

A size and an alignment. More...

#include <memory/MemoryResource.hpp>

Public Member Functions

 BlockTraits (std::size_t size)
 
 BlockTraits (std::size_t size, std::align_val_t alignment)
 
auto size () const noexcept -> std::size_t
 Gets the size of the bock.
 
auto alignment () const noexcept -> std::size_t
 Gets the alignment of the bock.
 

Detailed Description

A size and an alignment.

Constructor & Destructor Documentation

◆ BlockTraits() [1/2]

xentara::memory::MemoryResource::BlockHandler::BlockTraits::BlockTraits ( std::size_t  size)

◆ BlockTraits() [2/2]

xentara::memory::MemoryResource::BlockHandler::BlockTraits::BlockTraits ( std::size_t  size,
std::align_val_t  alignment 
)

Member Function Documentation

◆ alignment()

auto xentara::memory::MemoryResource::BlockHandler::BlockTraits::alignment ( ) const -> std::size_t
noexcept

Gets the alignment of the bock.

◆ size()

auto xentara::memory::MemoryResource::BlockHandler::BlockTraits::size ( ) const -> std::size_t
noexcept

Gets the size of the bock.