MongoDB C++ Driver mongocxx-3.11.0
Loading...
Searching...
No Matches
bsoncxx::v_noabi::builder Namespace Reference

Description

Declares entities used to build BSON documents.

Namespaces

namespace  basic
 Declares entities used with "basic" BSON builder syntax.
 
namespace  stream
 Declares entities used with "streaming" BSON builder syntax.
 

Classes

class  array
 A JSON-like builder for creating arrays. More...
 
struct  concatenate_array
 Container to concatenate an array. Use this with the array stream builder in order to pass an array into a new builder and append its values to the stream. More...
 
struct  concatenate_doc
 Container to concatenate a document. Use it by constructing an instance with the document to be concatenated, and pass it into a document stream builder. More...
 
class  core
 A low-level interface for constructing BSON documents and arrays. More...
 
class  document
 A JSON-like builder for creating documents. More...
 
class  list
 A JSON-like builder for creating documents and arrays. More...
 

Functions

concatenate_array concatenate (array::view_or_value array)
 Helper method to concatenate an array.
 
concatenate_doc concatenate (document::view_or_value doc)
 Helper method to concatenate a document.
 

Function Documentation

◆ concatenate() [1/2]

concatenate_array bsoncxx::v_noabi::builder::concatenate ( array::view_or_value array)
inline

Helper method to concatenate an array.

Use this with the document stream builder to merge an existing array's fields with a new document's.

Parameters
arrayThe array to concatenate.
Returns
concatenate_doc A concatenating struct.
See also

◆ concatenate() [2/2]

concatenate_doc bsoncxx::v_noabi::builder::concatenate ( document::view_or_value doc)
inline

Helper method to concatenate a document.

Use this with the document stream builder to merge an existing document's fields with a new document's.

Parameters
docThe document to concatenate.
Returns
concatenate_doc A concatenating struct.
See also