MongoDB C++ Driver  mongocxx-3.7.0
Public Member Functions | List of all members
mongocxx::pool::entry Class Reference

An entry is a handle on a client object acquired via the pool. More...

#include <pool.hpp>

Public Member Functions

clientoperator-> () const &noexcept
 Access a member of the client instance.
 
clientoperator* () const &noexcept
 Retrieve a reference to the client.
 
entryoperator= (std::nullptr_t) noexcept
 Assign nullptr to this entry to release its client to the pool.
 
 operator bool () const noexcept
 Return true if this entry has a client acquired from the pool.
 

Detailed Description

An entry is a handle on a client object acquired via the pool.

Similar to std::unique_ptr.

Note
The lifetime of any entry object must be a subset of the pool object from which it was acquired.

The documentation for this class was generated from the following file: