98 return std::move(_cursor);
154class cursor::iterator {
162 using iterator_category = std::input_iterator_tag;
163 using difference_type = std::ptrdiff_t;
201 return !(lhs == rhs);
211 bool is_exhausted()
const;
227 return {std::move(v)};
A read-only, non-owning view of a BSON document.
Definition view.hpp:40
An input iterator of documents in a MongoDB cursor result set.
Definition cursor.hpp:154
cursor(cursor &&other) noexcept
Move constructs a cursor.
A MongoDB cursor.
Definition cursor.hpp:41
type
Enumeration identifying the type of the cursor.
Definition cursor.hpp:50
An input iterator of documents in a MongoDB cursor result set.
Definition cursor.hpp:154
friend bool operator==(iterator const &, iterator const &)
Compare two iterators for (in)-equality. Iterators compare equal if they point to the same underlying...
iterator & operator++()
Pre-increments the iterator to move to the next document.
bsoncxx::v_noabi::document::view const * operator->() const
Accesses a member of the dereferenced document currently being pointed to.
bsoncxx::v_noabi::document::view const & operator*() const
Dereferences the view for the document currently being pointed to.
bsoncxx::v_noabi::document::view value_type
std::iterator_traits
Definition cursor.hpp:159
friend bool operator!=(cursor::iterator const &lhs, cursor::iterator const &rhs) noexcept
Compare two iterators for (in)-equality. Iterators compare equal if they point to the same underlying...
Definition cursor.hpp:200
void operator++(int)
Post-increments the iterator to move to the next document.
Definition cursor.hpp:187
A cursor over the documents returned by a query to a MongoDB server.
Definition cursor.hpp:50
iterator end()
A cursor::iterator indicating cursor exhaustion, meaning that no documents are available from the cur...
iterator begin()
A cursor::iterator points to the beginning of any available results.
cursor(cursor &&other) noexcept
Move constructs a cursor.
Declares mongocxx::v_noabi::index_view.
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v_noabi macro guard postlude header.
The mongocxx v_noabi macro guard prelude header.
Declares entities whose ABI stability is guaranteed for documented symbols.
Declares entities whose ABI stability is NOT guaranteed.
v1::bulk_write to_v1(v_noabi::bulk_write v)
Convert to the mongocxx::v1 equivalent of v.
Definition bulk_write.hpp:162
v_noabi::bulk_write from_v1(v1::bulk_write v)
Convert to the mongocxx::v_noabi equivalent of v.
Definition bulk_write.hpp:155
The top-level namespace within which all mongocxx library entities are declared.
Declares mongocxx::v_noabi::search_index_view.
Provides mongocxx::v1::cursor.
Provides bsoncxx::v_noabi::document::view.
Provides std::optional-related polyfills for library API usage.
Declares mongocxx::v_noabi::client.
Declares mongocxx::v_noabi::client_encryption.
Declares mongocxx::v_noabi::collection.
Declares mongocxx::v_noabi::cursor.
Declares mongocxx::v_noabi::database.