Template Struct PointerWrapper
Defined in File pointer_wrapper.hpp
Struct Documentation
-
template<typename
T
>
structripple
::
PointerWrapper
The PointerWrapper class stores a type T and provides pointer like access to the type T.
That is, the semantics of the PointerWrapper and a pointer are the same.
- Template Parameters
T
: The type to wrap with pointer like access.
Public Functions
-
PointerWrapper
(T data) noexcept Constructor to create the wrapper.
- Parameters
data
: The data to wrap as a pointer.
-
auto
operator->
() noexcept -> T* Overload of the access operator to access the type T with pointer like syntax.
- Return
A pointer to the wrapped type.
-
auto
operator->
() const noexcept -> const T* Overload of the access operator to access the type T with const pointer like access.
- Return
A const pointer to the wrapped type.