MongoDB C++ Driver mongocxx-3.11.0
Loading...
Searching...
No Matches
mongocxx::v_noabi::pool::entry Class Reference

#include <mongocxx/v_noabi/mongocxx/pool.hpp>

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.

Public Member Functions

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

Member Function Documentation

◆ operator bool()

mongocxx::v_noabi::pool::entry::operator bool ( ) const
explicitnoexcept

Return true if this entry has a client acquired from the pool.

◆ operator*()

client & mongocxx::v_noabi::pool::entry::operator* ( ) const &
noexcept

Retrieve a reference to the client.

◆ operator->()

client * mongocxx::v_noabi::pool::entry::operator-> ( ) const &
noexcept

Access a member of the client instance.

◆ operator=()

entry & mongocxx::v_noabi::pool::entry::operator= ( std::nullptr_t )
noexcept

Assign nullptr to this entry to release its client to the pool.


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