94 return _d128.to_string();
107 std::uint64_t
low()
const {
117 return lhs._d128 == rhs._d128;
126 return lhs._d128 != rhs._d128;
#define BSONCXX_ABI_EXPORT_CDECL(...)
Equivalent to BSONCXX_ABI_EXPORT with BSONCXX_ABI_CDECL.
Definition export.hpp:52
The bsoncxx v_noabi macro guard postlude header.
The bsoncxx v_noabi macro guard prelude header.
decimal128()=default
Constructs a BSON Decimal128 value representing zero.
A BSON Decimal128.
Definition decimal128.hpp:39
Represents a MongoDB BSON Decimal128.
Definition decimal128.hpp:45
decimal128(std::uint64_t high, std::uint64_t low)
Constructs a BSON Decimal128 from high and low 64-bit big-endian parts.
Definition decimal128.hpp:68
friend bool operator!=(decimal128 const &lhs, decimal128 const &rhs)
Equality comparison operator.
Definition decimal128.hpp:125
decimal128()=default
Constructs a BSON Decimal128 value representing zero.
decimal128(v1::decimal128 const &d128) noexcept
Construct with the bsoncxx::v1 equivalent.
Definition decimal128.hpp:58
std::string to_string() const
Converts this decimal128 value to a string representation.
Definition decimal128.hpp:93
friend bool operator==(decimal128 const &lhs, decimal128 const &rhs)
Equality comparison operator.
Definition decimal128.hpp:116
std::uint64_t low() const
Accessor for low 64 bits.
Definition decimal128.hpp:107
std::uint64_t high() const
Accessor for high 64 bits.
Definition decimal128.hpp:100
Declares entities whose ABI stability is guaranteed for documented symbols.
Declares C++17 standard library polyfills.
Declares entities whose ABI stability is NOT guaranteed.
v1::element::view to_v1(v_noabi::array::element const &v)
Convert to the bsoncxx::v1 equivalent of v.
Definition element.hpp:132
v_noabi::array::value from_v1(v1::array::value const &v)
Convert from the bsoncxx::v1 equivalent of v.
Definition value.hpp:267
The top-level namespace within which all bsoncxx library entities are declared.
Provides bsoncxx::v1::decimal128.
Declares bsoncxx::v_noabi::decimal128.
Provides std::string_view-related polyfills for library API usage.