17 #include <mongocxx/index_model-fwd.hpp>
19 #include <bsoncxx/document/value.hpp>
20 #include <bsoncxx/document/view_or_value.hpp>
21 #include <mongocxx/options/index.hpp>
23 #include <mongocxx/config/prelude.hpp>
74 bsoncxx::v_noabi::document::value _keys;
75 bsoncxx::v_noabi::document::value _options;
81 #include <mongocxx/config/postlude.hpp>
Class representing an index on a MongoDB server.
Definition: index_model.hpp:31
index_model(const bsoncxx::v_noabi::document::view_or_value &keys, const bsoncxx::v_noabi::document::view_or_value &options={})
Initializes a new index_model over a mongocxx::v_noabi::collection.
index_model(index_model &&) noexcept
Move constructs an index_model.
bsoncxx::v_noabi::document::view options() const
Retrieves options of an index_model.
bsoncxx::v_noabi::document::view keys() const
Retrieves keys of an index_model.
The top-level namespace for bsoncxx library entities.
Definition: element-fwd.hpp:19
The top-level namespace for mongocxx library entities.
Definition: bulk_write-fwd.hpp:19