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

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

Description

BSON type value "ObjectID".

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

Public Member Functions

 b_oid ()=default
 Zero-initialize the represented value.
 b_oid (v1::oid const &value)
 Initialize with value.
 operator v1::oid () const
 Implicitly convert to value.

Public Attributes

v1::oid value
 The represented value.

Static Public Attributes

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

Friends

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

Constructor & Destructor Documentation

◆ b_oid() [1/2]

bsoncxx::v1::types::b_oid::b_oid ( )
default

Zero-initialize the represented value.

◆ b_oid() [2/2]

bsoncxx::v1::types::b_oid::b_oid ( v1::oid const & value)
inlineexplicit

Initialize with value.

Member Function Documentation

◆ operator v1::oid()

bsoncxx::v1::types::b_oid::operator v1::oid ( ) const
inline

Implicitly convert to value.

◆ operator!=

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

Equivalent to !(lhs == rhs).

◆ operator==

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

Equivalent to lhs.value == rhs.value.

Member Data Documentation

◆ type_id

id bsoncxx::v1::types::b_oid::type_id = id::k_oid
staticconstexpr

The type represented by this BSON type value.

◆ value

v1::oid bsoncxx::v1::types::b_oid::value

The represented value.


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