9 #ifndef LIBPMEMOBJ_CPP_P_HPP
10 #define LIBPMEMOBJ_CPP_P_HPP
47 p(
const T &_val) noexcept : val{_val}
85 typename =
typename std::enable_if<
86 std::is_convertible<Y, T>::value>::type>
98 operator T() const noexcept
145 std::swap(this->val, other.val);
Resides on pmem class.
Definition: p.hpp:36
p & operator=(const p< Y > &rhs)
Converting assignment operator from a different p<>.
Definition: p.hpp:88
p(const T &_val) noexcept
Value constructor.
Definition: p.hpp:47
T & get_rw()
Retrieves read-write reference of the object.
Definition: p.hpp:114
void swap(p &other)
Swaps two p objects of the same type.
Definition: p.hpp:141
p()=default
Defaulted constructor.
void swap(p< T > &a, p< T > &b)
Swaps two p objects of the same type.
Definition: p.hpp:161
p & operator=(const p &rhs)
Assignment operator.
Definition: p.hpp:67
const T & get_ro() const noexcept
Retrieves read-only const reference of the object.
Definition: p.hpp:129
Commonly used functionality.
void conditional_add_to_tx(const T *that, std::size_t count=1, uint64_t flags=0)
Conditionally add 'count' objects to a transaction.
Definition: common.hpp:176
Persistent memory namespace.
Definition: allocation_flag.hpp:15
Helper template for persistent ptr specialization.