34using is_bson_view_compatible = detail::conjunction<
35 std::is_constructible<bsoncxx::v_noabi::types::bson_value::view, T>,
36 detail::negation<detail::disjunction<
37 detail::is_alike<T, bsoncxx::v_noabi::types::bson_value::view>,
38 detail::is_alike<T, bsoncxx::v_noabi::types::bson_value::value>>>>;
284 view(std::uint8_t const* raw, std::uint32_t length, std::uint32_t offset, std::uint32_t keylen);
285 view(
void* internal_value) noexcept;
287 void _init(
void* internal_value) noexcept;
289 void destroy() noexcept;
360namespace bson_value {
362using ::bsoncxx::v_noabi::types::bson_value::operator==;
363using ::bsoncxx::v_noabi::types::bson_value::operator!=;
#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.
view(b_double v) noexcept
Construct a bson_value::view from the provided BSON type.
An owning variant type that represents any BSON type.
Definition value.hpp:48
A non-owning variant that can contain any BSON type.
Definition view.hpp:55
b_dbpointer const & get_dbpointer() const
Returns the underlying BSON DBPointer value.
b_null const & get_null() const
Returns the underlying BSON null value.
b_date const & get_date() const
Returns the underlying BSON date value.
b_maxkey const & get_maxkey() const
Returns the underlying BSON max-key value.
detail::requires_t< bool, detail::is_bson_view_compatible< T > > operator==(bson_value::view const &lhs, T &&rhs)
Compares a view with a type representable as a view.
Definition view.hpp:328
b_double const & get_double() const
Returns the underlying BSON double value.
b_string const & get_string() const
Returns the underlying BSON UTF-8 string value.
b_int32 const & get_int32() const
Returns the underlying BSON 32-bit signed integer value.
b_code const & get_code() const
Returns the underlying BSON JavaScript code value.
b_array const & get_array() const
Returns the underlying BSON array value.
b_int64 const & get_int64() const
Returns the underlying BSON 64-bit signed integer value.
detail::requires_t< bool, detail::is_bson_view_compatible< T > > operator!=(T &&lhs, bson_value::view const &rhs)
Compares a view with a type representable as a view.
Definition view.hpp:346
b_codewscope const & get_codewscope() const
Returns the underlying BSON JavaScript code with scope value.
bsoncxx::v_noabi::type type() const
Returns the type of the underlying BSON value stored in this object.
b_symbol const & get_symbol() const
Returns the underlying BSON symbol value.
b_document const & get_document() const
Returns the underlying BSON document value.
b_bool const & get_bool() const
Returns the underlying BSON boolean value.
view(b_double v) noexcept
Construct a bson_value::view from the provided BSON type.
detail::requires_t< bool, detail::is_bson_view_compatible< T > > operator==(T &&lhs, bson_value::view const &rhs)
Compares a view with a type representable as a view.
Definition view.hpp:334
b_decimal128 const & get_decimal128() const
Returns the underlying BSON Decimal128 value.
b_undefined const & get_undefined() const
Returns the underlying BSON undefined value.
b_oid const & get_oid() const
Returns the underlying BSON ObjectId value.
b_minkey const & get_minkey() const
Returns the underlying BSON min-key value.
b_timestamp const & get_timestamp() const
Returns the underlying BSON replication timestamp value.
detail::requires_t< bool, detail::is_bson_view_compatible< T > > operator!=(bson_value::view const &lhs, T &&rhs)
Compares a view with a type representable as a view.
Definition view.hpp:340
b_regex const & get_regex() const
Returns the underlying BSON regex value.
b_binary const & get_binary() const
Returns the underlying BSON binary data value.
Declares bsoncxx::v_noabi::document::element.
Declares entities representing a BSON document.
Declares entities representing any BSON value type.
Declares entities representing BSON value types.
Declares entities whose ABI stability is NOT guaranteed.
The top-level namespace within which all bsoncxx library entities are declared.
A BSON array value.
Definition types.hpp:202
A BSON binary data value.
Definition types.hpp:227
A BSON boolean value.
Definition types.hpp:284
A BSON JavaScript code value.
Definition types.hpp:434
A BSON JavaScript code with scope value.
Definition types.hpp:504
A BSON date value.
Definition types.hpp:309
A BSON DBPointer (aka DBRef) value.
Definition types.hpp:415
A BSON Decimal128 value.
Definition types.hpp:604
A BSON document value.
Definition types.hpp:170
A BSON double value.
Definition types.hpp:111
A BSON signed 32-bit integer value.
Definition types.hpp:535
A BSON 64-bit signed integer value.
Definition types.hpp:579
A BSON max-key value.
Definition types.hpp:647
A BSON min-key value.
Definition types.hpp:631
A BSON null value.
Definition types.hpp:366
A BSON ObjectId value.
Definition types.hpp:266
A BSON regex value.
Definition types.hpp:382
A BSON UTF-8 encoded string value.
Definition types.hpp:136
A BSON Symbol value.
Definition types.hpp:470
A BSON replication timestamp value.
Definition types.hpp:560
A BSON undefined value.
Definition types.hpp:250
Declares bsoncxx::v_noabi::types::bson_value::value.
Declares bsoncxx::v_noabi::types::bson_value::view.
Provides entities used to represent BSON types.