57 return v1::hint{std::string{_index_string->view()}};
87 return index_hint._index_string == index;
98 return index_hint._index_doc == index;
144 return !(
hint == str);
149 return !(
hint == str);
169 return !(
hint == doc);
174 return !(
hint == doc);
184 return {std::move(v)};
199using v_noabi::operator==;
200using v_noabi::operator!=;
A BSON document.
Definition value.hpp:46
A polyfill for std::optional<T>.
Definition optional.hpp:799
A read-only, non-owning view of a BSON document.
Definition view.hpp:40
A view-or-value variant type for strings.
Definition view_or_value.hpp:41
hint(v1::hint hint)
Construct with the mongocxx::v1 equivalent.
Options related to a MongoDB query hint.
Definition hint.hpp:47
The index to "hint" or force a MongoDB server to use when performing a query.
Definition hint.hpp:42
bool operator==(bsoncxx::v_noabi::document::view doc, hint const &hint)
Convenience methods to compare for equality against an index document.
Definition hint.hpp:163
bool operator==(std::string str, hint const &hint)
Convenience methods to compare against an index name.
Definition hint.hpp:138
bool operator!=(hint const &hint, bsoncxx::v_noabi::document::view doc)
Convenience methods to compare for equality against an index document.
Definition hint.hpp:168
bool operator!=(bsoncxx::v_noabi::document::view doc, hint const &hint)
Convenience methods to compare for equality against an index document.
Definition hint.hpp:173
bsoncxx::v_noabi::types::view to_value() const
Returns a bsoncxx::v_noabi::types::view representing this hint.
Definition hint.hpp:107
bool operator!=(std::string str, hint const &hint)
Convenience methods to compare against an index name.
Definition hint.hpp:148
bool operator!=(hint const &hint, std::string str)
Convenience methods to compare against an index name.
Definition hint.hpp:143
friend bool operator==(hint const &index_hint, bsoncxx::v_noabi::document::view index)
Convenience methods to compare for equality against an index document.
Definition hint.hpp:97
hint(bsoncxx::v_noabi::document::view_or_value index)
Constructs a new hint.
Definition hint.hpp:69
friend bool operator==(hint const &index_hint, std::string index)
Convenience methods to compare for equality against an index name.
Definition hint.hpp:86
hint(v1::hint hint)
Construct with the mongocxx::v1 equivalent.
hint(bsoncxx::v_noabi::string::view_or_value index)
Constructs a new hint.
Definition hint.hpp:77
Provides bsoncxx::v_noabi::document::view_or_value.
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v_noabi macro guard postlude header.
The mongocxx v_noabi macro guard prelude header.
v_noabi::view_or_value< v_noabi::document::view, v_noabi::document::value > view_or_value
Equivalent to v_noabi::view_or_value<v_noabi::document::view, v_noabi::document::value>.
Definition view_or_value.hpp:30
v_noabi::types::bson_value::view view
Equivalent to bsoncxx::v_noabi::types::bson_value::view.
Definition view-fwd.hpp:35
v1::element::view to_v1(v_noabi::array::element const &v)
Convert to the bsoncxx::v1 equivalent of v.
Definition element.hpp:132
Declares entities whose ABI stability is guaranteed for documented symbols.
Declares entities whose ABI stability is NOT guaranteed.
v1::bulk_write to_v1(v_noabi::bulk_write v)
Convert to the mongocxx::v1 equivalent of v.
Definition bulk_write.hpp:162
v_noabi::bulk_write from_v1(v1::bulk_write v)
Convert to the mongocxx::v_noabi equivalent of v.
Definition bulk_write.hpp:155
The top-level namespace within which all mongocxx library entities are declared.
Provides bsoncxx::v_noabi::string::view_or_value.
A BSON document value.
Definition types.hpp:211
A BSON UTF-8 encoded string value.
Definition types.hpp:177
Provides entities used to represent BSON types.
Provides mongocxx::v1::hint.
Provides bsoncxx::v_noabi::document::value.
Provides bsoncxx::v_noabi::document::view.
Provides std::optional-related polyfills for library API usage.
Equivalent to bsoncxx/types/bson_value/view.hpp.
Declares mongocxx::v_noabi::hint.