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

Description

Declares entities representing any BSON value type.

Classes

class  value
 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. More...
 
class  view
 A view-only variant that can contain any BSON type. More...
 

Typedefs

using view_or_value = bsoncxx::v_noabi::view_or_value<view, value>
 Equivalent to v_noabi::view_or_value<view, value>.
 

Functions

template<typename T >
bson_value::value make_value (T &&t)
 Helper to construct a bson_value::value from a component bson type. The type of the passed-in t can be anything that builder::basic::sub_document::append accepts.
 
bool operator== (const value &lhs, const value &rhs)
 Compares values for (in)-equality.
 
bool operator!= (const value &lhs, const value &rhs)
 Compares values for (in)-equality.
 
bool operator== (const value &lhs, const value &rhs)
 Compares values for (in)-equality.
 
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.
 
bool operator== (const view &lhs, const value &rhs)
 Compares a value with a view for (in)equality.
 
bool operator!= (const value &lhs, const view &rhs)
 Compares a value with a view for (in)equality.
 
bool operator!= (const view &lhs, const value &rhs)
 Compares a value with a view for (in)equality.
 
bool operator== (const value &lhs, const view &rhs)
 Compares a value with a view for (in)equality.
 
bool operator== (const view &lhs, const value &rhs)
 Compares a value with a view for (in)equality.
 
bool operator!= (const value &lhs, const view &rhs)
 Compares a value with a view for (in)equality.
 
bool operator!= (const view &lhs, const value &rhs)
 Compares a value with a view for (in)equality.
 
template<typename T >
detail::requires_t< bool, is_bson_view_compatible< T > > operator== (const bson_value::view &lhs, T &&rhs)
 Compares a view with a type representable as a view.
 
template<typename T >
detail::requires_t< bool, is_bson_view_compatible< T > > operator== (T &&lhs, const bson_value::view &rhs)
 Compares a view with a type representable as a view.
 
template<typename T >
detail::requires_t< bool, is_bson_view_compatible< T > > operator!= (const bson_value::view &lhs, T &&rhs)
 Compares a view with a type representable as a view.
 
template<typename T >
detail::requires_t< bool, is_bson_view_compatible< T > > operator!= (T &&lhs, const bson_value::view &rhs)
 Compares a view with a type representable as a view.
 
template<typename T >
detail::requires_t< bool, is_bson_view_compatible< T > > operator== (const bson_value::view &lhs, T &&rhs)
 Compares a view with a type representable as a view.
 
template<typename T >
detail::requires_t< bool, is_bson_view_compatible< T > > operator== (T &&lhs, const bson_value::view &rhs)
 Compares a view with a type representable as a view.
 
template<typename T >
detail::requires_t< bool, is_bson_view_compatible< T > > operator!= (const bson_value::view &lhs, T &&rhs)
 Compares a view with a type representable as a view.
 
template<typename T >
detail::requires_t< bool, is_bson_view_compatible< T > > operator!= (T &&lhs, const bson_value::view &rhs)
 Compares a view with a type representable as a view.
 

Typedef Documentation

◆ view_or_value

Function Documentation

◆ make_value()

template<typename T >
bson_value::value bsoncxx::v_noabi::types::bson_value::make_value ( T && t)

Helper to construct a bson_value::value from a component bson type. The type of the passed-in t can be anything that builder::basic::sub_document::append accepts.

◆ operator!=() [1/10]

template<typename T >
detail::requires_t< bool, is_bson_view_compatible< T > > operator!= ( const bson_value::view & lhs,
T && rhs )

Compares a view with a type representable as a view.

Constraints

◆ operator!=() [2/10]

bool operator!= ( const value & lhs,
const value & rhs )
inline

Compares values for (in)-equality.

◆ operator!=() [3/10]

bool operator!= ( const value & lhs,
const view & rhs )
inline

Compares a value with a view for (in)equality.

◆ operator!=() [4/10]

bool operator!= ( const view & lhs,
const value & rhs )
inline

Compares a value with a view for (in)equality.

◆ operator!=() [5/10]

template<typename T >
detail::requires_t< bool, is_bson_view_compatible< T > > operator!= ( T && lhs,
const bson_value::view & rhs )

Compares a view with a type representable as a view.

Constraints

◆ operator==() [1/10]

template<typename T >
detail::requires_t< bool, is_bson_view_compatible< T > > operator== ( const bson_value::view & lhs,
T && rhs )

Compares a view with a type representable as a view.

Constraints

◆ operator==() [2/10]

bool operator== ( const value & lhs,
const value & rhs )
inline

Compares values for (in)-equality.

◆ operator==() [3/10]

bool operator== ( const value & lhs,
const view & rhs )
inline

Compares a value with a view for (in)equality.

◆ operator==() [4/10]

bool operator== ( const view & lhs,
const value & rhs )
inline

Compares a value with a view for (in)equality.

◆ operator==() [5/10]

template<typename T >
detail::requires_t< bool, is_bson_view_compatible< T > > operator== ( T && lhs,
const bson_value::view & rhs )

Compares a view with a type representable as a view.

Constraints