19 #include <bsoncxx/stdx/string_view.hpp>
20 #include <mongocxx/events/server_description.hpp>
21 #include <mongocxx/read_preference.hpp>
23 #include <mongocxx/config/prelude.hpp>
26 inline namespace v_noabi {
42 using container = std::vector<server_description>;
100 std::
size_t size() const noexcept;
106 container _container;
135 bool has_readable_server(const
mongocxx::read_preference& pref) const;
145 bool has_writable_server() const;
164 #include <mongocxx/config/postlude.hpp>
An array of server_description instances.
Definition: topology_description.hpp:40
server_descriptions(server_descriptions &&) noexcept
Move constructs a server_descriptions array.
container::iterator iterator
The array's iterator type.
Definition: topology_description.hpp:66
container::const_iterator const_iterator
The array's const iterator type.
Definition: topology_description.hpp:71
Class representing what the driver knows about a topology of MongoDB servers: either a standalone,...
Definition: topology_description.hpp:35
Class representing a preference for how the driver routes read operations to members of a replica set...
Definition: read_preference.hpp:67
The top-level namespace for bsoncxx library entities.
Definition: element.hpp:24
The top-level namespace for mongocxx library entities.
Definition: bulk_write.hpp:24