PMDK C++ bindings
1.2.0
This is the C++ bindings documentation for PMDK's libpmemobj.
|
pmem::obj::experimental::v - volatile resides on pmem class. More...
#include <libpmemobj++/experimental/v.hpp>
Public Member Functions | |
v (const T &_val) noexcept | |
Value constructor. More... | |
v () noexcept | |
Defaulted constructor. | |
v & | operator= (const v &rhs) |
Assignment operator. | |
template<typename Y , typename = typename std::enable_if< std::is_convertible<Y, T>::value>::type> | |
v & | operator= (const v< Y > &rhs) |
Converting assignment operator from a different v<>. More... | |
T & | get () noexcept |
Retrieves reference of the object. More... | |
operator T () const noexcept | |
Conversion operator back to the underlying type. | |
void | swap (v &other) |
Swaps two v objects of the same type. | |
pmem::obj::experimental::v - volatile resides on pmem class.
v class is a property-like template class that has to be used for all volatile variables that reside on persistent memory. This class ensures that the enclosed type is always properly initialized by always calling the class default constructor exactly once per instance of the application. This class has 8 bytes of storage overhead.
|
inlinenoexcept |
Value constructor.
Directly assigns a value to the underlying storage.
_val | const reference to the value to be assigned. |
|
inlinenoexcept |
Retrieves reference of the object.
|
inline |
Converting assignment operator from a different v<>.
Available only for convertible types.