37 #ifndef LIBPMEMOBJ_UTILS_HPP 38 #define LIBPMEMOBJ_UTILS_HPP 42 #include "libpmemobj/base.h" 63 auto pop = pmemobj_pool_by_ptr(that);
65 throw pool_error(
"Object not in an open pool.");
83 auto pop = pmemobj_pool_by_oid(ptr.
raw());
85 throw pool_error(
"Object not in an open pool.");
Persistent pointer class.
Definition: persistent_ptr.hpp:72
The non-template pool base class.
Definition: pool.hpp:64
pool_base pool_by_pptr(const persistent_ptr< T > ptr)
Retrieve pool handle for the given persistent_ptr.
Definition: utils.hpp:81
const PMEMoid & raw() const noexcept
Get PMEMoid encapsulated by this object.
Definition: persistent_ptr.hpp:276
pool_base pool_by_vptr(const T *that)
Retrieve pool handle for the given pointer.
Definition: utils.hpp:61
Persistent smart pointer.
Definition: condition_variable.hpp:48
Custom pool error class.
Definition: pexceptions.hpp:53