8 #ifndef LIBPMEMOBJ_CPP_UTILS_HPP
9 #define LIBPMEMOBJ_CPP_UTILS_HPP
13 #include <libpmemobj/base.h>
34 auto pop = pmemobj_pool_by_ptr(that);
54 auto pop = pmemobj_pool_by_oid(ptr.
raw());
const PMEMoid & raw() const noexcept
Get PMEMoid encapsulated by this object.
Definition: persistent_ptr_base.hpp:151
Persistent pointer class.
Definition: persistent_ptr.hpp:152
The non-template pool base class.
Definition: pool.hpp:50
Custom pool error class.
Definition: pexceptions.hpp:45
pool_base pool_by_pptr(const persistent_ptr< T > ptr)
Retrieve pool handle for the given persistent_ptr.
Definition: utils.hpp:52
pool_base pool_by_vptr(const T *that)
Retrieve pool handle for the given pointer.
Definition: utils.hpp:32
Persistent memory namespace.
Definition: allocation_flag.hpp:15
Persistent smart pointer.