A JSON-like builder for creating documents and arrays.
More...
#include <list.hpp>
A JSON-like builder for creating documents and arrays.
◆ list() [1/2]
template<typename T >
bsoncxx::v_noabi::builder::list::list |
( |
T |
value | ) |
|
|
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.
- Parameters
-
- See also
- bsoncxx::types::bson_value::value.
◆ list() [2/2]
bsoncxx::v_noabi::builder::list::list |
( |
initializer_list_t |
init | ) |
|
|
inline |
Creates a BSON document, if possible.
Otherwise, it will create a BSON array. A document is possible if:
- Parameters
-
init | the initializer list used to construct the BSON document or array |
- Note
- to enforce the creation of a BSON document or array use the bsoncxx::builder::document or bsoncxx::builder::array constructor, respectively.
- See also
- bsoncxx::builder::document
-
bsoncxx::builder::array
◆ operator bson_value::view()
Provides a view of the underlying BSON value.
- See also
- bsoncxx::types::bson_value::view.
◆ view()
Provides a view of the underlying BSON value.
- See also
- bsoncxx::types::bson_value::view.
The documentation for this class was generated from the following file:
- src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/builder/list.hpp