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

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

Description

BSON type value "64-bit Integer".

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

Public Member Functions

 b_int64 ()=default
 Zero-initialize the represented value.
 b_int64 (std::int64_t value)
 Initialize with value.

Public Attributes

std::int64_t value = {}
 The represented value.

Static Public Attributes

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

Friends

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

Constructor & Destructor Documentation

◆ b_int64() [1/2]

bsoncxx::v1::types::b_int64::b_int64 ( )
default

Zero-initialize the represented value.

◆ b_int64() [2/2]

bsoncxx::v1::types::b_int64::b_int64 ( std::int64_t value)
inlineexplicit

Initialize with value.

◆ operator!=

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

Equivalent to !(lhs == rhs).

◆ operator==

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

Equivalent to lhs.value == rhs.value.

Member Data Documentation

◆ type_id

id bsoncxx::v1::types::b_int64::type_id = id::k_int64
staticconstexpr

The type represented by this BSON type value.

◆ value

std::int64_t bsoncxx::v1::types::b_int64::value = {}

The represented value.


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