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:538
A BSON double value.
Definition: types.hpp:84
A BSON JavaScript code value.
Definition: types.hpp:465
A BSON null value.
Definition: types.hpp:346
A BSON regex value.
Definition: types.hpp:366
A BSON binary data value.
Definition: types.hpp:202
A BSON DBPointer value.
Definition: types.hpp:402
A BSON max-key value.
Definition: types.hpp:635
A BSON UTF-8 encoded string value.
Definition: types.hpp:109
A BSON date value.
Definition: types.hpp:286
A BSON min-key value.
Definition: types.hpp:615
A BSON JavaScript code value.
Definition: types.hpp:425
A BSON JavaScript code with scope value.
Definition: types.hpp:505
A BSON 64-bit signed integer value.
Definition: types.hpp:586
A BSON replication timestamp value.
Definition: types.hpp:567
A BSON document value.
Definition: types.hpp:145
A BSON boolean value.
Definition: types.hpp:261
A BSON ObjectId value.
Definition: types.hpp:243
Definition: element.hpp:24
A BSON undefined value.
Definition: types.hpp:227
A BSON array value.
Definition: types.hpp:177
A variant that can contain any BSON type.
Definition: value.hpp:37