MongoDB C++ Driver  mongocxx-3.7.0
Public Member Functions | List of all members
bsoncxx::builder::document Class Reference

A JSON-like builder for creating documents. More...

#include <list.hpp>

+ Inheritance diagram for bsoncxx::builder::document:

Public Member Functions

 document ()
 Creates an empty document.
 
 document (initializer_list_t init)
 Creates a BSON document. More...
 
- Public Member Functions inherited from bsoncxx::builder::list
 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...
 

Detailed Description

A JSON-like builder for creating documents.

Constructor & Destructor Documentation

◆ document()

bsoncxx::builder::document::document ( initializer_list_t  init)
inline

Creates a BSON document.

Parameters
initthe initializer list used to construct the BSON document
See also
bsoncxx::builder::list
bsoncxx::builder::array

The documentation for this class was generated from the following file: