Sources Pipelines Documentation

Allocators  
Classes | Public Types | Public Member Functions | Static Public Attributes | List of all members
boost::memory::bitmapped_block< allocator, min, max, capacity, alignment > Class Template Reference

A continous memory block divided into equal number of sub-block with a bitmap indicating availability of such sub-blocks. More...

#include <bitmapped_block.hpp>

Classes

class  bitmap
 A map of bit flags. More...
 

Public Types

using allocator_type = allocator
 
using bitmap_type = bitmap<(capacity%8==0?capacity/8:capacity/8+1)>
 

Public Member Functions

memory_block allocate (std::size_t size)
 
void deallocate (memory_block &block)
 
bool owns (memory_block &block)
 

Static Public Attributes

static const std::size_t min_size = min
 
static const std::size_t max_size = max
 
static const std::size_t aligned_max_size = align_size<alignment>(max)
 
static const std::size_t blocks_count = capacity
 

Detailed Description

template<typename allocator, std::size_t min, std::size_t max, std::size_t capacity, std::size_t alignment = NO_ALIGNMENT>
class boost::memory::bitmapped_block< allocator, min, max, capacity, alignment >

A continous memory block divided into equal number of sub-block with a bitmap indicating availability of such sub-blocks.

Template Parameters
allocator
min
max
capacity
alignment

Definition at line 65 of file bitmapped_block.hpp.


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