17#include <bsoncxx/document/value.hpp>
18#include <bsoncxx/document/view_or_value.hpp>
19#include <bsoncxx/stdx/optional.hpp>
20#include <bsoncxx/string/view_or_value.hpp>
21#include <bsoncxx/types/bson_value/view.hpp>
22#include <mongocxx/stdx.hpp>
24#include <mongocxx/config/prelude.hpp>
27MONGOCXX_INLINE_NAMESPACE_BEGIN
60 friend MONGOCXX_API
bool MONGOCXX_CALL
operator==(
const hint& index_hint, std::string index);
87 stdx::optional<bsoncxx::document::view_or_value> _index_doc;
88 stdx::optional<bsoncxx::string::view_or_value> _index_string;
98MONGOCXX_API
bool MONGOCXX_CALL
operator==(std::string index,
const hint& index_hint);
109MONGOCXX_API
bool MONGOCXX_CALL
operator!=(
const hint& index_hint, std::string index);
110MONGOCXX_API
bool MONGOCXX_CALL operator!=(std::string index,
const hint& index_index);
144MONGOCXX_INLINE_NAMESPACE_END
147#include <mongocxx/config/postlude.hpp>
A read-only, non-owning view of a BSON document.
Definition view.hpp:33
Class representing a view-or-value variant type for strings.
Definition view_or_value.hpp:36
A view-only variant that can contain any BSON type.
Definition view.hpp:44
Class representing a hint to be passed to a database operation.
Definition hint.hpp:32
bool operator==(bsoncxx::document::view index, const hint &index_hint)
Convenience methods to compare for equality against an index document.
friend bool operator==(const hint &index_hint, std::string index)
Compare this hint to a string for (in)-equality.
friend bool operator==(const hint &index_hint, bsoncxx::document::view index)
Compare this hint to a string for (in)-equality.
bool operator==(std::string index, const hint &index_hint)
Convenience methods to compare for equality against an index name.
bsoncxx::types::bson_value::view to_value() const
Returns a types::bson_value::view representing this hint.
hint(bsoncxx::document::view_or_value index)
Constructs a new hint.
bool operator!=(const hint &index_hint, std::string index)
Convenience methods to compare for inequality against an index name.
bool operator!=(const hint &index_hint, bsoncxx::document::view index)
Convenience methods to compare for equality against an index document.
hint(bsoncxx::string::view_or_value index)
Constructs a new hint.
Top level namespace for the MongoDB C++ driver.
Definition bulk_write.hpp:24