17 #include <bsoncxx/document/value.hpp>
18 #include <bsoncxx/document/view_or_value.hpp>
19 #include <bsoncxx/builder/stream/document.hpp>
20 #include <bsoncxx/builder/stream/helpers.hpp>
21 #include <bsoncxx/builder/stream/key_context.hpp>
22 #include <bsoncxx/stdx/optional.hpp>
23 #include <bsoncxx/string/view_or_value.hpp>
24 #include <mongocxx/stdx.hpp>
26 #include <mongocxx/config/prelude.hpp>
29 MONGOCXX_INLINE_NAMESPACE_BEGIN
62 friend MONGOCXX_API
bool MONGOCXX_CALL operator==(
const hint& index_hint, std::string index);
64 friend MONGOCXX_API
bool MONGOCXX_CALL
83 stdx::optional<bsoncxx::document::view_or_value> _index_doc;
84 stdx::optional<bsoncxx::string::view_or_value> _index_string;
94 MONGOCXX_API
bool MONGOCXX_CALL operator==(std::string index,
const hint& index_hint);
105 MONGOCXX_API
bool MONGOCXX_CALL operator!=(
const hint& index_hint, std::string index);
106 MONGOCXX_API
bool MONGOCXX_CALL operator!=(std::string index,
const hint& index_index);
137 return to_document();
140 MONGOCXX_INLINE_NAMESPACE_END
143 #include <mongocxx/config/postlude.hpp>
Definition: bulk_write.hpp:22
A read-only BSON document that owns its underlying buffer.
Definition: value.hpp:33
A read-only, non-owning view of a BSON document.
Definition: view.hpp:33
Class representing a hint to be passed to a database operation.
Definition: hint.hpp:34
Class representing a view-or-value variant type for strings.
Definition: view_or_value.hpp:36