Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct template block_size

boost::container::block_size

Synopsis

// In header: <boost/container/options.hpp>

template<std::size_t BlockSize> 
struct block_size {
};

Description

This option specifies the size of a block, delimites the number of contiguous elements (BlockSize) that will be allocated by segmented containers. For some containers (like deque/segtor), a power of two value can improve performance. A value zero represents the default value.

If BlockSize is very small, the implementation might use a bigger block.

Template Parameters

  1. std::size_t BlockSize

    An unsigned integer value.


PrevUpHomeNext