I was looking to the mongocxx query exemples and I don't get whats the point of using auto&&
over auto&
here.
auto cursor = db["restaurants"].find({}, opts);
for (auto&& doc : cursor) {
std::cout << bsoncxx::to_json(doc) << std::endl;
}
Aucun commentaire:
Enregistrer un commentaire