MongoDB C++ Driver mongocxx-3.6.7
|
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. | |
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.