cds
2.3.2
|
[type-option] Option setter for user-provided plain buffer More...
#include <cds/opt/buffer.h>
[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:
opt::v::initialized_static_buffer
opt::v::uninitialized_static_buffer
opt::v::initialized_dynamic_buffer
opt::v::uninitialized_dynamic_buffer
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.