#include <mongocxx/v_noabi/mongocxx/pool.hpp>
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.
|
| operator bool () const noexcept |
| Return true if this entry has a client acquired from the pool.
|
|
client & | operator* () const &noexcept |
| Retrieve a reference to the client.
|
|
client * | operator-> () const &noexcept |
| Access a member of the client instance.
|
|
entry & | operator= (std::nullptr_t) noexcept |
| Assign nullptr to this entry to release its client to the pool.
|
|
◆ 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: