17 #include <mongocxx/hint-fwd.hpp>
19 #include <bsoncxx/document/value.hpp>
20 #include <bsoncxx/document/view_or_value.hpp>
21 #include <bsoncxx/stdx/optional.hpp>
22 #include <bsoncxx/string/view_or_value.hpp>
23 #include <bsoncxx/types/bson_value/view.hpp>
24 #include <mongocxx/stdx.hpp>
26 #include <mongocxx/config/prelude.hpp>
62 friend MONGOCXX_API
bool MONGOCXX_CALL
operator==(
const hint& index_hint, std::string index);
89 stdx::optional<bsoncxx::v_noabi::document::view_or_value> _index_doc;
90 stdx::optional<bsoncxx::v_noabi::string::view_or_value> _index_string;
100 MONGOCXX_API
bool MONGOCXX_CALL
operator==(std::string index,
const hint& index_hint);
111 MONGOCXX_API
bool MONGOCXX_CALL
operator!=(
const hint& index_hint, std::string index);
112 MONGOCXX_API
bool MONGOCXX_CALL operator!=(std::string index,
const hint& index_index);
125 const hint& index_hint);
140 const hint& index_hint);
154 using ::mongocxx::v_noabi::operator==;
155 using ::mongocxx::v_noabi::operator!=;
159 #include <mongocxx/config/postlude.hpp>
A read-only, non-owning view of a BSON document.
Definition: view.hpp:35
Class representing a view-or-value variant type for strings.
Definition: view_or_value.hpp:38
A view-only variant that can contain any BSON type.
Definition: view.hpp:41
Class representing a hint to be passed to a database operation.
Definition: hint.hpp:34
bsoncxx::v_noabi::types::bson_value::view to_value() const
Returns a types::bson_value::view representing this hint.
friend bool operator==(const hint &index_hint, std::string index)
Compare this hint to a string for (in)-equality.
bool operator!=(const hint &index_hint, bsoncxx::v_noabi::document::view index)
Convenience methods to compare for equality against an index document.
bool operator==(std::string index, const hint &index_hint)
Convenience methods to compare for equality against an index name.
bool operator!=(const hint &index_hint, std::string index)
Convenience methods to compare for inequality against an index name.
friend bool operator==(const hint &index_hint, bsoncxx::v_noabi::document::view index)
Compare this hint to a string for (in)-equality.
hint(bsoncxx::v_noabi::document::view_or_value index)
Constructs a new hint.
bool operator==(bsoncxx::v_noabi::document::view index, const hint &index_hint)
Convenience methods to compare for equality against an index document.
hint(bsoncxx::v_noabi::string::view_or_value index)
Constructs a new hint.
The top-level namespace for mongocxx library entities.
Definition: bulk_write-fwd.hpp:19