Sources Pipelines Documentation

Allocators  
Public Member Functions | Public Attributes | List of all members
boost::memory::memory_block Struct Reference

Represents an allocated memory block. More...

#include <memory_block.hpp>

Public Member Functions

 operator std::uint8_t * () const
 Implicitly converts the structure to the underlying block address. More...
 
bool operator== (const memory_block &other) const
 Checks if memory blocks are identical. More...
 

Public Attributes

void * address
 
std::size_t size
 Block's size.
 

Detailed Description

Represents an allocated memory block.

An allocated memory block points at the address at which is has been allocated as well as size of this block.

Definition at line 20 of file memory_block.hpp.

Member Function Documentation

boost::memory::memory_block::operator std::uint8_t * ( ) const
inline

Implicitly converts the structure to the underlying block address.

Returns
An address to the allocated block.

Definition at line 37 of file memory_block.hpp.

bool boost::memory::memory_block::operator== ( const memory_block other) const
inline

Checks if memory blocks are identical.

Parameters
otherA reference to another memory_block.
Returns
true if memory block are identical, false otherwise.

Definition at line 48 of file memory_block.hpp.

Member Data Documentation

void* boost::memory::memory_block::address

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