17 #ifndef IOX_UTILS_CXX_UNIQUE_PTR_HPP
18 #define IOX_UTILS_CXX_UNIQUE_PTR_HPP
20 #include "iceoryx_utils/cxx/function_ref.hpp"
83 explicit operator bool()
const noexcept;
97 const T*
get()
const noexcept;
110 void reset(T*
const ptr =
nullptr) noexcept;
126 #include "iceoryx_utils/internal/cxx/unique_ptr.inl"
Definition: function_ref.hpp:32
The unique_ptr class is a heap-less unique ptr implementation, unlike the STL.
Definition: unique_ptr.hpp:36
~unique_ptr() noexcept
Definition: unique_ptr.inl:62
T * get() noexcept
get Retrieve the underlying raw pointer.
Definition: unique_ptr.inl:86
void swap(unique_ptr &other) noexcept
swap Swaps object ownership with another unique_ptr (incl. deleters)
Definition: unique_ptr.inl:116
void reset(T *const ptr=nullptr) noexcept
reset Reset the unique pointer to take ownership of the given pointer.
Definition: unique_ptr.inl:106
T * release() noexcept
release Release ownership of the underlying pointer.
Definition: unique_ptr.inl:98
T * operator->() noexcept
operator -> Transparent access to the managed object.
Definition: unique_ptr.inl:68
building block to easily create free function for logging in a library context
Definition: lockfree_queue.hpp:28