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

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

Description

BSON type value "64-bit Binary Floating Point".

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

Public Member Functions

 b_double ()=default
 Zero-initialize the represented value.
 b_double (double value)
 Initialize with value.
 operator double () const
 Implicitly convert to value.

Public Attributes

double value = {}
 The represented value.

Static Public Attributes

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

Friends

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

Constructor & Destructor Documentation

◆ b_double() [1/2]

bsoncxx::v1::types::b_double::b_double ( )
default

Zero-initialize the represented value.

◆ b_double() [2/2]

bsoncxx::v1::types::b_double::b_double ( double value)
inlineexplicit

Initialize with value.

Member Function Documentation

◆ operator double()

bsoncxx::v1::types::b_double::operator double ( ) const
inline

Implicitly convert to value.

◆ operator!=

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

Equivalent to !(lhs == rhs).

◆ operator==

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

Equivalent to lhs.value == rhs.value.

Member Data Documentation

◆ type_id

id bsoncxx::v1::types::b_double::type_id = id::k_double
staticconstexpr

The type represented by this BSON type value.

◆ value

double bsoncxx::v1::types::b_double::value = {}

The represented value.


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