MongoDB C++ Driver mongocxx-4.0.0
|
#include <bsoncxx/v_noabi/bsoncxx/builder/list.hpp>
A JSON-like builder for creating documents and arrays.
Public Member Functions | |
list () | |
Creates an empty document. | |
list (initializer_list_t init) | |
Creates a BSON document, if possible. Otherwise, it will create a BSON array. A document is possible if: | |
template<typename T > | |
list (T value) | |
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. | |
operator types::bson_value::view () | |
Provides a view of the underlying BSON value. | |
types::bson_value::view | view () |
Provides a view of the underlying BSON value. | |
|
inline |
Creates an empty document.
|
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.
Provides a view of the underlying BSON value.