20#include <bsoncxx/stdx/optional.hpp>
21#include <mongocxx/options/pool.hpp>
22#include <mongocxx/stdx.hpp>
23#include <mongocxx/uri.hpp>
25#include <mongocxx/config/prelude.hpp>
28MONGOCXX_INLINE_NAMESPACE_BEGIN
78 client* operator->() && = delete;
82 client& operator*() && = delete;
85 entry& operator=(std::nullptr_t) noexcept;
88 explicit operator
bool() const noexcept;
93 using unique_client = std::unique_ptr<
client, std::function<
void MONGOCXX_CALL(
client*)>>;
95 MONGOCXX_PRIVATE explicit
entry(unique_client);
97 unique_client _client;
110 stdx::optional<
entry> try_acquire();
113 friend class options::auto_encryption;
117 class MONGOCXX_PRIVATE impl;
118 const std::unique_ptr<impl> _impl;
121MONGOCXX_INLINE_NAMESPACE_END
124#include <mongocxx/config/postlude.hpp>
Class representing a client connection to MongoDB.
Definition client.hpp:58
Class representing the optional arguments to a MongoDB driver pool object.
Definition pool.hpp:29
An entry is a handle on a client object acquired via the pool.
Definition pool.hpp:74
client * operator->() const &noexcept
Access a member of the client instance.
A pool of client objects associated with a MongoDB deployment.
Definition pool.hpp:47
pool(const uri &mongodb_uri=mongocxx::uri(), const options::pool &options=options::pool())
Creates a pool associated with a connection string.
Class representing a MongoDB connection string URI.
Definition uri.hpp:43
Top level namespace for the MongoDB C++ driver.
Definition bulk_write.hpp:24