Allocator Builder
Policy Based C++ Template Allocator Library
 All Classes Functions Variables Enumerations Enumerator Groups Pages
alb::v_100::block Struct Reference

#include <allocator_base.hpp>

Public Member Functions

 block (void *ptr, size_t length) noexcept
 
 block (block &&x) noexcept
 
blockoperator= (block &&x) noexcept
 
blockoperator= (const block &x) noexcept=default
 
 block (const block &x) noexcept=default
 
 ~block ()
 
void reset () noexcept
 
 operator bool () const
 
bool operator== (const block &rhs) const
 

Public Attributes

void * ptr
 
size_t length
 

Detailed Description

The value type to describe a memory block and it's length

Definition at line 26 of file allocator_base.hpp.

Constructor & Destructor Documentation

alb::v_100::block::~block ( )
inline

During destruction of any of this instance, the described memory is not freed!

Definition at line 59 of file allocator_base.hpp.

Member Function Documentation

alb::v_100::block::operator bool ( ) const
inlineexplicit

Bool operator to make the Allocator code better readable

Definition at line 75 of file allocator_base.hpp.

void alb::v_100::block::reset ( )
inlinenoexcept

Clears the block

Definition at line 66 of file allocator_base.hpp.


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