This space‐efficient value‐semantic array class represents a sequence of STORAGE::EightByteStorageType elements; STORAGE::EightByteStorageType must be convertible to either a signed or unsigned 64‐bit integer using static_cast. The interface provides functionality similar to a vector<int> however references to individual elements are not provided.
Synopsis
Declared in <bdlc_packedintarray.h>
template<class STORAGE>
class PackedIntArrayImp;
Type Aliases
Name |
Description |
Element storage type used by this packed array implementation. |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this object |
Assign to this array the value of the specified |
|
Return the allocator used by this array to supply memory. |
|
|
|
Assign to this object the value read from the specified input |
|
Write this value to the specified output |
|
Return the number of bytes currently used to store each element in this array. |
|
Return the number of elements this array can hold in terms of the current data type used to store its elements. |
|
|
|
Return |
|
Return |
|
Return number of elements in this array. |
|
Return the value of the element at the specified |
|
Remove the last element from this array. The behavior is undefined unless |
|
Write the value of this array to the specified output |
|
Append an element having the specified |
|
|
|
Remove all the elements from this array and set the storage required per element to one byte. |
|
|
|
|
|
Make the capacity of this array at least the specified |
|
Set the length of this array to the specified |
|
Efficiently exchange the value of this array with the value of the specified |
Static Member Functions
Name |
Description |
Return the |
Static Data Members
Name |
Description |
Maximum capacity in bytes for this packed array implementation. |
Specializations
Name |
Description |
This space‐efficient value‐semantic array class represents a sequence of |
Created with MrDocs