19 #include <type_traits>
21 #include <bsoncxx/types.hpp>
23 #include <bsoncxx/config/prelude.hpp>
26 BSONCXX_INLINE_NAMESPACE_BEGIN
151 friend BSONCXX_API
bool BSONCXX_CALL operator==(
const value&,
const value&);
152 friend BSONCXX_API
bool BSONCXX_CALL operator!=(
const value&,
const value&);
160 bsoncxx::type type()
const;
178 const b_utf8& get_utf8()
const;
196 const b_array& get_array()
const;
223 const b_oid& get_oid()
const;
232 const b_bool& get_bool()
const;
241 const b_date& get_date()
const;
250 const b_null& get_null()
const;
259 const b_regex& get_regex()
const;
277 const b_code& get_code()
const;
304 const b_int32& get_int32()
const;
322 const b_int64& get_int64()
const;
343 void BSONCXX_PRIVATE destroy() noexcept;
372 template <
typename T>
374 typename std::enable_if<!std::is_same<typename std::remove_reference<T>::type,
value>
::value,
378 template <
typename T>
379 BSONCXX_INLINE not_value<T> operator==(
const value& lhs, T&& rhs) {
380 return lhs ==
value{std::forward<T>(rhs)};
383 template <
typename T>
384 BSONCXX_INLINE not_value<T> operator==(T&& lhs,
const value& rhs) {
385 return value{std::forward<T>(lhs)} == rhs;
388 template <
typename T>
389 BSONCXX_INLINE not_value<T> operator!=(
const value& lhs, T&& rhs) {
390 return lhs != value{std::forward<T>(rhs)};
393 template <
typename T>
394 BSONCXX_INLINE not_value<T> operator!=(T&& lhs,
const value& rhs) {
395 return value{std::forward<T>(lhs)} != rhs;
400 BSONCXX_INLINE_NAMESPACE_END
403 #include <bsoncxx/config/postlude.hpp>
A BSON signed 32-bit integer value.
Definition: types.hpp:531
A BSON double value.
Definition: types.hpp:84
A BSON Symbol value.
Definition: types.hpp:460
A BSON null value.
Definition: types.hpp:348
A BSON regex value.
Definition: types.hpp:364
A BSON binary data value.
Definition: types.hpp:204
A BSON DBPointer value.
Definition: types.hpp:400
A BSON max-key value.
Definition: types.hpp:620
A BSON UTF-8 encoded string value.
Definition: types.hpp:109
A BSON date value.
Definition: types.hpp:287
A BSON min-key value.
Definition: types.hpp:604
A BSON JavaScript code value.
Definition: types.hpp:419
A BSON JavaScript code with scope value.
Definition: types.hpp:498
A BSON 64-bit signed integer value.
Definition: types.hpp:579
A BSON replication timestamp value.
Definition: types.hpp:560
A BSON document value.
Definition: types.hpp:147
A BSON boolean value.
Definition: types.hpp:262
A BSON ObjectId value.
Definition: types.hpp:244
Definition: element.hpp:24
A BSON undefined value.
Definition: types.hpp:228
A BSON array value.
Definition: types.hpp:179
A variant that can contain any BSON type.
Definition: value.hpp:37