|
Crypto++
5.6.5
Free C++ class library of cryptographic schemes
|
Manages resources for an array of objects. More...
Public Member Functions | |
| vector_ptr (size_t size=0) | |
Construct an arry of T. More... | |
| T & | operator[] (size_t index) |
| const T & | operator[] (size_t index) const |
| size_t | size () const |
| void | resize (size_t newSize) |
| operator const void * () const | |
| operator void * () | |
| operator const T * () const | |
| operator T* () | |
Manages resources for an array of objects.
| T | class or type vector_ptr is used frequently in the library to avoid large stack allocations, and manage resources and ensure cleanup under the RAII pattern (Resource Acquisition Is Initialization). |
Definition at line 229 of file smartptr.h.
|
inline |
Construct an arry of T.
| size | the size of the array, in elements If T is a Plain Old Dataype (POD), then the array is uninitialized. |
Definition at line 235 of file smartptr.h.