MongoDB C++ Driver 4.1.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
bsoncxx::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. More...
 
struct  concatenate_doc
 Container to concatenate a document. 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_doc concatenate (document::view_or_value doc)
 Helper method to concatenate a document.
 

Function Documentation

◆ concatenate()

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

Helper method to concatenate a document.

Use this with a document builder to merge an existing document's fields with that of the document being built.

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