74 other.m_data =
nullptr;
94 other.m_data =
nullptr;
104 if (
this == & other )
121 swap ( m_data, other.m_data );
182 operator const T && ( )
const & {
183 return std::move ( * m_data );
192 operator T && ( ) && {
193 return std::move ( * m_data );
Class representing wrapper of dynamically allocated object behaving like rvalue reference.
Definition: ptr_value.hpp:40
const T & get() const
Getter of the holded value.
Definition: ptr_value.hpp:202
ptr_value & operator=(const ptr_value &other)
Copy assignment will clone the pointer referenced value in source instance to create new one for the ...
Definition: ptr_value.hpp:103
T * operator->() &&
Arrow operator to chain dereference.
Definition: ptr_value.hpp:140
ptr_value(ptr_value< U > &&other)
User conversion constructor from ptr_value for type U where T is its predecessor.
Definition: ptr_value.hpp:73
ptr_value(T &&value)
Constructor of the ptr_value from dynaically allocated object. The class will take ownerhip of the po...
Definition: ptr_value.hpp:60
ptr_value(const T &value)
Constructor of the ptr_value from dynaically allocated object. The class will take ownerhip of the po...
Definition: ptr_value.hpp:52
ptr_value(ptr_value &&other) noexcept
Move construction will transfer ownership of the pointer from source instance to newly created one.
Definition: ptr_value.hpp:93
ptr_value(const ptr_value &other)
Copy construction will clone the pointer referenced value in source instance to create new one for th...
Definition: ptr_value.hpp:83
~ptr_value() noexcept
Destructor will free the owned instance.
Definition: ptr_value.hpp:130
Definition: sigHandler.cpp:20
auto clone(T &&tmp)
Wrapper around clone by means of using copy constructor or clone method if available.
Definition: clone.hpp:41
void swap(ext::linear_set< T, Compare, Alloc > &x, ext::linear_set< T, Compare, Alloc > &y)
Specialisation of swap for linear set.
Definition: linear_set.hpp:846
Definition: FordFulkerson.hpp:16
void swap(ext::managed_linear_set< T, Compare, Alloc > &x, ext::managed_linear_set< T, Compare, Alloc > &y)
Specialisation of swap for linear set.
Definition: managed_linear_set.hpp:864