JSON array value providing a sequence‐container‐like interface.
Synopsis
Declared in <bdljsn_json.h>
class JsonArray;
Description
This type is designed to replicate much of the standard sequence container interface, eliding interfaces that are less relevant for a non‐generic container. Note that a bsl::vector is chosen for the implementation because our implementation permits the element type to be incomplete (when just spelling the type name).
Type Aliases
Name |
Description |
Iterator providing non‐modifiable access to elements. |
|
Iterator providing modifiable access to elements. |
|
Iterator providing non‐modifiable access to elements. |
|
Reference providing non‐modifiable access to an element. |
|
Signed type used to represent distances between iterators. |
|
Iterator providing modifiable access to elements. |
|
Reference providing modifiable access to an element. |
|
Unsigned type used to represent sizes and indices. |
|
Type of the elements stored in this array. |
Member Functions
Name |
Description |
|
Constructors |
Assignment operators |
|
Return the allocator used by this object to allocate memory. |
|
|
|
|
|
|
|
Return a const iterator to the first member of this object. |
|
Return the past‐the‐end iterator providing non‐modifiable access to this |
|
Remove all elements from this array. |
|
Return |
|
|
|
|
|
|
|
|
|
Return a theoretical upper bound on this array's maximum size. |
|
Subscript operators |
|
Erase the last element from this |
|
Write this value to the specified output stream in a human‐readable format. |
|
|
|
|
|
Return the number of elements in this |
|
Exchange the value of this object with that of |
|
|
Declare that this type uses a |
Friends
Name |
Description |
Exchange the values of the specified |
|
Return whether |
|
Return whether |
Non-Member Functions
Name |
Description |
Return whether |
|
Return whether |
Created with MrDocs