HLIBpro
2.3.1
|
Defines a reference countable memory block.
#include <MemBlock.hh>
Public Types | |
using | value_t = T_value |
internal value type | |
Public Member Functions | |
MemBlock () noexcept | |
ctor with nullptr data and 0 references | |
MemBlock (const size_t n) | |
ctor for n elements of value_t and 0 references | |
MemBlock (const MemBlock &b) | |
copy ctor (copy reference!) | |
MemBlock (MemBlock &&b) noexcept | |
move ctor (move ownership) | |
~MemBlock () | |
dtor removing all data even if references exist ! | |
MemBlock & | operator= (const MemBlock &b) |
copy operator (copy reference!) | |
MemBlock & | operator= (MemBlock &&b) noexcept |
move ctor (move ownership) | |
value_t * | data () noexcept |
return pointer to internal array | |
const value_t * | data () const noexcept |
return const pointer to internal array | |