MongoDB C++ Driver
mongocxx-3.7.0
|
A JSON-like builder for creating documents and arrays. More...
#include <list.hpp>
Public Member Functions | |
list () | |
Creates an empty document. | |
template<typename T > | |
list (T value) | |
Creates a bsoncxx::builder::list from a value of type T. More... | |
list (initializer_list_t init) | |
Creates a BSON document, if possible. More... | |
operator bson_value::view () | |
Provides a view of the underlying BSON value. More... | |
bson_value::view | view () |
Provides a view of the underlying BSON value. More... | |
A JSON-like builder for creating documents and arrays.
|
inline |
Creates a bsoncxx::builder::list from a value of type T.
T must be a bsoncxx::types::bson_value::value or implicitly convertible to a bsoncxx::types::bson_value::value.
value | the BSON value |
|
inline |
Creates a BSON document, if possible.
Otherwise, it will create a BSON array. A document is possible if:
init | the initializer list used to construct the BSON document or array |
|
inline |
Provides a view of the underlying BSON value.
|
inline |
Provides a view of the underlying BSON value.