std::vector<V>-like container that is 1) resized without initialization of its elements, 2) much simplified: no push_back and many other methods More...
#include <MRBuffer.h>
Public Types | |
using | T = typename NoCtor<V>::type |
using | reference = T& |
using | const_reference = const T& |
using | iterator = T* |
using | const_iterator = const T* |
Public Member Functions | |
Buffer ()=default | |
Buffer (size_t size) | |
auto | capacity () const |
auto | size () const |
bool | empty () const |
void | clear () |
void | resize (size_t newSize) |
const_reference | operator[] (I i) const |
reference | operator[] (I i) |
auto | data () |
auto | data () const |
I | beginId () const |
returns the identifier of the first element | |
I | backId () const |
returns the identifier of the back() element | |
I | endId () const |
returns backId() + 1 | |
size_t | heapBytes () const |
returns the amount of memory this object occupies on heap | |
std::vector<V>-like container that is 1) resized without initialization of its elements, 2) much simplified: no push_back and many other methods
V | type of stored elements |
I | type of index (shall be convertible to size_t) |
using MR::Buffer< V, I >::const_iterator = const T* |
using MR::Buffer< V, I >::const_reference = const T& |
using MR::Buffer< V, I >::iterator = T* |
using MR::Buffer< V, I >::reference = T& |
using MR::Buffer< V, I >::T = typename NoCtor<V>::type |
|
default |
|
inlineexplicit |
|
inlinenodiscard |
returns the identifier of the back() element
|
inlinenodiscard |
returns the identifier of the first element
|
inlinenodiscard |
|
inline |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
returns backId() + 1
|
inlinenodiscard |
returns the amount of memory this object occupies on heap
|
inlinenodiscard |
|
inlinenodiscard |
|
inline |
|
inlinenodiscard |