MongoDB C++ Driver  mongocxx-3.7.0
List of all members
bsoncxx::array::element Class Reference

A variant view type that accesses values in serialized BSON arrays. More...

#include <element.hpp>

+ Inheritance diagram for bsoncxx::array::element:

Related Functions

(Note that these are not member functions.)

bool operator== (const element &elem, const types::bson_value::view &v)
 Convenience methods to compare for equality against a bson_value. More...
 
bool operator!= (const element &elem, const types::bson_value::view &v)
 Convenience methods to compare for equality against a bson_value. More...
 

Detailed Description

A variant view type that accesses values in serialized BSON arrays.

Element functions as a variant type, where the kind of the element can be interrogated by calling type() and a specific value can be extracted through get_X() accessors.

Friends And Related Function Documentation

◆ operator!=()

bool operator!= ( const element elem,
const types::bson_value::view v 
)
related

Convenience methods to compare for equality against a bson_value.

Returns false if this element contains a bson_value that matches.

◆ operator==()

bool operator== ( const element elem,
const types::bson_value::view v 
)
related

Convenience methods to compare for equality against a bson_value.

Returns true if this element contains a bson_value that matches.


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