133 friend
bool operator==(
hint const& lhs,
hint const& rhs) {
134 return lhs.str() == rhs.str() && lhs.doc() == rhs.doc();
138 return !(lhs == rhs);
A non-owning, read-only BSON document.
Definition view.hpp:54
A polyfill for std::string_view.
Definition string_view.hpp:412
friend bool operator!=(bsoncxx::v1::document::view doc, hint const &h)
Equivalent to comparing h.doc() and doc.
Definition hint.hpp:181
friend bool operator!=(bsoncxx::v1::stdx::string_view str, hint const &h)
Equivalent to comparing h.str() with str.
Definition hint.hpp:159
friend bool operator!=(hint const &h, bsoncxx::v1::stdx::string_view str)
Equivalent to comparing h.str() with str.
Definition hint.hpp:151
friend bool operator==(hint const &h, bsoncxx::v1::document::view doc)
Equivalent to comparing h.doc() and doc.
Definition hint.hpp:169
friend bool operator==(bsoncxx::v1::document::view doc, hint const &h)
Equivalent to comparing h.doc() and doc.
Definition hint.hpp:177
friend bool operator!=(hint const &h, bsoncxx::v1::document::view doc)
Equivalent to comparing h.doc() and doc.
Definition hint.hpp:173
hint(hint &&other) noexcept
Move constructor.
friend bool operator==(bsoncxx::v1::stdx::string_view str, hint const &h)
Equivalent to comparing h.str() with str.
Definition hint.hpp:155
friend bool operator!=(hint const &lhs, hint const &rhs)
Compare equal when the underlying "hint" values compare equal.
Definition hint.hpp:137
bsoncxx::v1::stdx::optional< bsoncxx::v1::stdx::string_view > str() const
Return the current "hint" value as a string.
friend bool operator==(hint const &h, bsoncxx::v1::stdx::string_view str)
Equivalent to comparing h.str() with str.
Definition hint.hpp:147
bsoncxx::v1::types::view to_value() const
Return the current "hint" value as a BSON type value.
operator bsoncxx::v1::types::view() const
Equivalent to to_value() const.
bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > doc() const
Return the current "hint" value as a document.
~hint()
Destroy this object.
Provides macros to control the set of symbols exported in the ABI.
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v1 macro guard postlude header.
The mongocxx v1 macro guard prelude header.
The top-level namespace within which all bsoncxx library entities are declared.
Declares entities whose ABI stability is guaranteed for documented symbols.
The top-level namespace within which all mongocxx library entities are declared.
Declares bsoncxx::v1::document::value.
Provides bsoncxx::v1::document::view.
Declares mongocxx::v1::hint.
Provides std::optional-related polyfills for library API usage.
Provides std::string_view-related polyfills for library API usage.
Declares non-owning, read-only entities representing a BSON type value.