43 using container = std::vector<server_description>;
103 container _container;
168#include <mongocxx/config/postlude.hpp>
An array of server_description instances.
Definition topology_description.hpp:41
iterator end() noexcept
Returns an iterator to the end.
iterator begin() noexcept
Returns an iterator to the beginning.
container::iterator iterator
The array's iterator type.
Definition topology_description.hpp:67
container::const_iterator const_iterator
The array's const iterator type.
Definition topology_description.hpp:72
std::size_t size() const noexcept
The number of server_description instances in the array.
Class representing what the driver knows about a topology of MongoDB servers: either a standalone,...
Definition topology_description.hpp:36
bool has_readable_server(const mongocxx::v_noabi::read_preference &pref) const
Determines if the topology has a readable server available. Servers are filtered by the given read pr...
bool has_writable_server() const
Determines if the topology has a writable server available, such as a primary, mongos,...
bsoncxx::v_noabi::stdx::string_view type() const
The topology type: "Unknown", "Sharded", "ReplicaSetNoPrimary", "ReplicaSetWithPrimary",...
server_descriptions servers() const
Fetches descriptions for all known servers in the topology.
Class representing a preference for how the driver routes read operations to members of a replica set...
Definition read_preference.hpp:64
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition fwd.hpp:204
The mongocxx macro guard prelude header.
The top-level namespace within which all bsoncxx library entities are declared.
The top-level namespace within which all mongocxx library entities are declared.
The top-level namespace reserved for the C++ standard library.
Provides mongocxx::v_noabi::read_preference.
Provides mongocxx::v_noabi::events::server_description.
Provides std::string_view-related polyfills for library API usage.
Declares mongocxx::v_noabi::events::topology_description.