89 const bson_value::
view&);
91 const bson_value::
view&);
280 friend ::
bsoncxx::v_noabi::document::element;
282 view(const
std::uint8_t* raw,
std::uint32_t length,
std::uint32_t offset,
std::uint32_t keylen);
283 view(
void* internal_value) noexcept;
285 void _init(
void* internal_value) noexcept;
287 void destroy() noexcept;
317using is_bson_view_compatible = detail::conjunction<
318 std::is_constructible<bson_value::view, T>,
319 detail::negation<detail::disjunction<detail::is_alike<T, bson_value::view>,
320 detail::is_alike<T, bson_value::value>>>>;
323using not_view = is_bson_view_compatible<T>;
335detail::requires_t<bool, is_bson_view_compatible<T>>
342detail::requires_t<bool, is_bson_view_compatible<T>>
349detail::requires_t<bool, is_bson_view_compatible<T>>
356detail::requires_t<bool, is_bson_view_compatible<T>>
371namespace bson_value {
373using ::bsoncxx::v_noabi::types::bson_value::operator==;
374using ::bsoncxx::v_noabi::types::bson_value::operator!=;
387#if defined(BSONCXX_PRIVATE_DOXYGEN_PREPROCESSOR)
391namespace bson_value {
The bsoncxx macro guard postlude header.
The bsoncxx macro guard prelude header.
A variant owning type that represents any BSON type. Owns its underlying buffer. When a bson_value::v...
Definition value.hpp:48
A view-only variant that can contain any BSON type.
Definition view.hpp:41
const b_dbpointer & get_dbpointer() const
Returns the underlying BSON DBPointer value.
const b_document & get_document() const
Returns the underlying BSON document value.
detail::requires_t< bool, is_bson_view_compatible< T > > operator==(const bson_value::view &lhs, T &&rhs)
Compares a view with a type representable as a view.
Definition view.hpp:336
detail::requires_t< bool, is_bson_view_compatible< T > > operator!=(const bson_value::view &lhs, T &&rhs)
Compares a view with a type representable as a view.
Definition view.hpp:350
const b_null & get_null() const
Returns the underlying BSON null value.
const b_symbol & get_symbol() const
Returns the underlying BSON symbol value.
const b_decimal128 & get_decimal128() const
Returns the underlying BSON Decimal128 value.
const b_oid & get_oid() const
Returns the underlying BSON ObjectId value.
const b_binary & get_binary() const
Returns the underlying BSON binary data value.
BSONCXX_DEPRECATED const b_string & get_utf8() const
Returns the underlying BSON UTF-8 string value.
const b_code & get_code() const
Returns the underlying BSON JavaScript code value.
const b_date & get_date() const
Returns the underlying BSON date value.
const b_bool & get_bool() const
Returns the underlying BSON boolean value.
const b_minkey & get_minkey() const
Returns the underlying BSON min-key value.
const b_double & get_double() const
Returns the underlying BSON double value.
detail::requires_t< bool, is_bson_view_compatible< T > > operator==(T &&lhs, const bson_value::view &rhs)
Compares a view with a type representable as a view.
Definition view.hpp:343
const b_array & get_array() const
Returns the underlying BSON array value.
const b_int32 & get_int32() const
Returns the underlying BSON 32-bit signed integer value.
const b_codewscope & get_codewscope() const
Returns the underlying BSON JavaScript code with scope value.
const b_maxkey & get_maxkey() const
Returns the underlying BSON max-key value.
const b_undefined & get_undefined() const
Returns the underlying BSON undefined value.
const b_timestamp & get_timestamp() const
Returns the underlying BSON replication timestamp value.
const b_regex & get_regex() const
Returns the underlying BSON regex value.
const b_int64 & get_int64() const
Returns the underlying BSON 64-bit signed integer value.
detail::requires_t< bool, is_bson_view_compatible< T > > operator!=(T &&lhs, const bson_value::view &rhs)
Compares a view with a type representable as a view.
Definition view.hpp:357
const b_string & get_string() const
Returns the underlying BSON UTF-8 string value.
Declares bsoncxx::v_noabi::document::element.
#define BSONCXX_DEPRECATED
Declares the associated entity as deprecated.
Definition fwd.hpp:261
#define BSONCXX_ABI_EXPORT_CDECL(...)
Equivalent to BSONCXX_ABI_EXPORT with BSONCXX_ABI_CDECL.
Definition fwd.hpp:225
bool operator==(const v_noabi::types::bson_value::value &lhs, const v_noabi::types::bson_value::value &rhs)
bsoncxx::v_noabi::types::bson_value::operator==(const v_noabi::types::bson_value::value& lhs,...
bool operator!=(const v_noabi::types::bson_value::value &lhs, const v_noabi::types::bson_value::value &rhs)
bsoncxx::v_noabi::types::bson_value::operator!=(const v_noabi::types::bson_value::value& lhs,...
type
An enumeration of each BSON type.
Definition types.hpp:43
The top-level namespace within which all bsoncxx library entities are declared.
The top-level namespace reserved for the C++ standard library.
A BSON array value.
Definition types.hpp:209
A BSON binary data value.
Definition types.hpp:234
A BSON boolean value.
Definition types.hpp:291
A BSON JavaScript code value.
Definition types.hpp:444
A BSON JavaScript code with scope value.
Definition types.hpp:514
A BSON date value.
Definition types.hpp:316
A BSON DBPointer (aka DBRef) value.
Definition types.hpp:425
A BSON Decimal128 value.
Definition types.hpp:617
A BSON document value.
Definition types.hpp:177
A BSON double value.
Definition types.hpp:111
A BSON signed 32-bit integer value.
Definition types.hpp:548
A BSON 64-bit signed integer value.
Definition types.hpp:592
A BSON max-key value.
Definition types.hpp:660
A BSON min-key value.
Definition types.hpp:644
A BSON null value.
Definition types.hpp:373
A BSON ObjectId value.
Definition types.hpp:273
A BSON regex value.
Definition types.hpp:389
A BSON UTF-8 encoded string value.
Definition types.hpp:136
A BSON Symbol value.
Definition types.hpp:480
A BSON replication timestamp value.
Definition types.hpp:573
A BSON undefined value.
Definition types.hpp:257
Provides <type_traits>-related polyfills for internal use.
Declares bsoncxx::v_noabi::types::bson_value::value.
Declares bsoncxx::v_noabi::types::bson_value::view.
Provides entities used to represent BSON types.