92 return std::move(_stream);
158 return _stream.get_resume_token();
168 using difference_type = std::int64_t;
170 using pointer = std::add_pointer<value_type>::type;
171 using reference = std::add_lvalue_reference<value_type>::type;
172 using iterator_category = std::input_iterator_tag;
231 void operator++(
int) {
249 return !(lhs == rhs);
259 bool is_exhausted()
const;
269 return {std::move(v)};
A read-only, non-owning view of a BSON document.
Definition view.hpp:40
A MongoDB change stream iterator.
Definition change_stream.hpp:165
change_stream(change_stream &&other) noexcept
Move constructs a change_stream.
A MongoDB change stream.
Definition change_stream.hpp:50
A MongoDB change stream iterator.
Definition change_stream.hpp:165
friend bool operator==(change_stream::iterator const &lhs, change_stream::iterator const &rhs) noexcept
Compare two iterators for (in)-equality.
iterator()
Default-construct an iterator. Default-constucted iterators can be compared (all default-constructed ...
friend bool operator!=(change_stream::iterator const &lhs, change_stream::iterator const &rhs) noexcept
Compare two iterators for (in)-equality.
Definition change_stream.hpp:248
iterator & operator++()
Pre-increments the iterator to move to the next document.
A MongoDB change stream.
Definition change_stream.hpp:44
iterator end() const
A change_stream::iterator indicating stream exhaustion, meaning that no notifications are available f...
bsoncxx::v1::stdx::optional< bsoncxx::v_noabi::document::view > get_resume_token() const
Returns a resume token for this change stream.
Definition change_stream.hpp:157
iterator begin() const
A change_stream::iterator points to the beginning of any available notifications.
change_stream(change_stream &&other) noexcept
Move constructs a change_stream.
#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.
The top-level namespace within which all bsoncxx library entities are declared.
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.
Provides mongocxx::v1::change_stream.
Provides bsoncxx::v_noabi::document::view.
Provides std::optional-related polyfills for library API usage.
Declares mongocxx::v_noabi::change_stream.
Declares mongocxx::v_noabi::client.
Declares mongocxx::v_noabi::collection.
Declares mongocxx::v_noabi::database.