MongoDB C++ Driver 4.3.0
Loading...
Searching...
No Matches
bsoncxx::v1::types::b_document Struct Reference

#include <bsoncxx/v1/types/view.hpp>

Description

BSON type value "Embedded Document".

Attention
This feature is experimental! It is not ready for use!

Public Member Functions

 b_document ()=default
 Zero-initialize the represented value.
 b_document (v1::document::view value)
 Initialize with value.
 operator v1::document::view () const
 Implicitly convert to value.

Public Attributes

v1::document::view value
 The represented value.

Static Public Attributes

static constexpr id type_id = id::k_document
 The type represented by this BSON type value.

Friends

bool operator!= (b_document const &lhs, b_document const &rhs)
 Equivalent to !(lhs == rhs).
bool operator== (b_document const &lhs, b_document const &rhs)
 Equivalent to lhs.value == rhs.value.

Constructor & Destructor Documentation

◆ b_document() [1/2]

bsoncxx::v1::types::b_document::b_document ( )
default

Zero-initialize the represented value.

◆ b_document() [2/2]

bsoncxx::v1::types::b_document::b_document ( v1::document::view value)
inlineexplicit

Initialize with value.

Member Function Documentation

◆ operator v1::document::view()

bsoncxx::v1::types::b_document::operator v1::document::view ( ) const
inline

Implicitly convert to value.

◆ operator!=

bool operator!= ( b_document const & lhs,
b_document const & rhs )
friend

Equivalent to !(lhs == rhs).

◆ operator==

bool operator== ( b_document const & lhs,
b_document const & rhs )
friend

Equivalent to lhs.value == rhs.value.

Member Data Documentation

◆ type_id

id bsoncxx::v1::types::b_document::type_id = id::k_document
staticconstexpr

The type represented by this BSON type value.

◆ value

v1::document::view bsoncxx::v1::types::b_document::value

The represented value.


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