Libpmemobj C++ utils.
More...
Go to the source code of this file.
◆ pool_by_pptr()
Retrieve pool handle for the given persistent_ptr.
- Parameters
-
[in] | ptr | pointer to an object from a persistent memory pool. |
- Returns
- handle to the pool containing the object.
- Exceptions
-
pool_error | if the given pointer does not belong to an open pool. |
◆ pool_by_vptr()
template<typename T >
pool_base pmem::obj::pool_by_vptr |
( |
const T * |
that | ) |
|
|
inline |
Retrieve pool handle for the given pointer.
- Parameters
-
[in] | that | pointer to an object from a persistent memory pool. |
- Returns
- handle to the pool containing the object.
- Exceptions
-
pool_error | if the given pointer does not belong to an open pool. |