cds  2.3.2
cds::opt::buffer< Type > Struct Template Reference

[type-option] Option setter for user-provided plain buffer More...

#include <cds/opt/buffer.h>

Detailed Description

template<typename Type>
struct cds::opt::buffer< Type >

[type-option] Option setter for user-provided plain buffer

This option is used by some container as a random access array for storing container's item; for example, a bounded queue may use this option to define underlying buffer implementation.

The template parameter Type should be rebindable.

Implementations:

Uninitialized buffer is just an array of uninitialized elements. Each element should be manually constructed, for example with a placement new operator. When the uninitialized buffer is destroyed the destructor of its element is not called.

Initialized buffer contains default-constructed elements. Element destructor is called automatically when the buffer is destroyed.

Note
Usually, initialized and uninitialized buffers are not interchangeable.

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

cds 2.3.2 Developed by Maxim Khizhinsky aka khizmax and other contributors 2007 - 2017
Autogenerated Sun Dec 31 2017 12:10:49 by Doxygen 1.8.13