MongoDB C++ Driver mongocxx-3.6.7
Public Member Functions | Friends | List of all members
bsoncxx::types::bson_value::value Class Reference

A variant owning type that represents any BSON type. More...

#include <value.hpp>

Public Member Functions

 value (const view &)
 Create an owning copy of a bson_value::view.
 
bson_value::view view () const noexcept
 Get a view over the bson_value owned by this object.
 
 operator bson_value::view () const noexcept
 Conversion operator that provides a bson_value::view given a bson_value::value.
 

Friends

class bsoncxx::document::element
 

Related Functions

(Note that these are not member functions.)

bool operator== (const value &lhs, const value &rhs)
 Compares values for (in)-equality.
 
bool operator== (const value &lhs, const view &rhs)
 Compares a value with a view for (in)-equality.
 

Detailed Description

A variant owning type that represents any BSON type.

Owns its underlying buffer. When a bson_value::value goes out of scope, its underlying buffer is freed.

For accessors into this type and to extract the various BSON types out, please use bson_value::view.


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