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

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

#include <list.hpp>

+ Inheritance diagram for bsoncxx::builder::array:

Public Member Functions

 array ()
 Creates an empty array.
 
 array (initializer_list_t init)
 Creates a BSON array. 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 arrays.

Constructor & Destructor Documentation

◆ array()

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

Creates a BSON array.

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

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