uninitialized_array< T > Class Template Reference
Array with runtime determined size which is not initialized on creation.
More...
#include <misc.h>
Detailed Description
template<typename T>
class uninitialized_array< T >
Array with runtime determined size which is not initialized on creation.
This RAII type is ment as output buffer for interfaces with e.g. C, where initializing a temp buffer to zero is waste of time because it gets overwritten with real data anyway.
It's ment as replacement for the error prone pattern of allocating scratch/buffer memory using new/delete and using a std::vector "cast" to a C style array.
Definition at line 18 of file misc.h.
Constructor & Destructor Documentation
Member Function Documentation
this opens the door to basically any operation allowed on C style arrays
Definition at line 29 of file misc.h.
Field Documentation
The documentation for this class was generated from the following file:
- /home/buildbot/slaves/docs/docs/build/src/utils/misc.h