1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
# Access an Array Element
## By Iteration
### Basic Example
@snippet api/bsoncxx/examples/bson_documents/access_array/basic.cpp Example
### Using Iterators
@snippet api/bsoncxx/examples/bson_documents/access_array/iterators.cpp Example
### Using Algorithms
@snippet api/bsoncxx/examples/bson_documents/access_array/algorithms.cpp Example
## By Key
### Using find()
@snippet api/bsoncxx/examples/bson_documents/access_array/find.cpp Example
### Using the Subscript Operator
@snippet api/bsoncxx/examples/bson_documents/access_array/subscript.cpp Example
|