MongoDB C++ Driver
mongocxx-3.10.2
|
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::v_noabi::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::v_noabi::builder::list from a value of type T.
T must be a bsoncxx::v_noabi::types::bson_value::value or implicitly convertible to a bsoncxx::v_noabi::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.