20 #include <mongocxx/collection-fwd.hpp>
21 #include <mongocxx/result/insert_many-fwd.hpp>
23 #include <bsoncxx/array/value.hpp>
24 #include <bsoncxx/types.hpp>
25 #include <mongocxx/result/bulk_write.hpp>
27 #include <mongocxx/config/prelude.hpp>
39 using id_map = std::map<std::size_t, bsoncxx::v_noabi::document::element>;
73 friend ::mongocxx::v_noabi::collection;
76 MONGOCXX_PRIVATE
void _buildInsertedIds();
95 #include <mongocxx/config/postlude.hpp>
A read-only BSON array that owns its underlying buffer.
Definition: value.hpp:36
Class representing the result of a MongoDB bulk write operation.
Definition: bulk_write.hpp:36
Class representing the result of a MongoDB insert many operation (executed as a bulk write).
Definition: insert_many.hpp:37
std::int32_t inserted_count() const
Gets the number of documents that were inserted during this operation.
id_map inserted_ids() const
Gets the _ids of the inserted documents.
const result::bulk_write & result() const
Returns the bulk write result for this insert many operation.
The top-level namespace for mongocxx library entities.
Definition: bulk_write-fwd.hpp:19