QuickCppLib 0.10
Eliminate all the tedious hassle when making state-of-the-art C++ 14 - 23 libraries!
Loading...
Searching...
No Matches
quickcpplib::_xxx::offset_ptr::offset_ptr< T > Class Template Reference

#include "offset_ptr.hpp"

Public Types

using pointer = T *
 The pointer type.
using element_type = T
 The pointed to type.

Public Member Functions

constexpr offset_ptr () noexcept
 Construct a null pointer.
constexpr offset_ptr (std::nullptr_t) noexcept
 Implicitly construct a null pointer.
constexpr offset_ptr (const offset_ptr &o) noexcept
 Copy constructor.
constexpr offset_ptr (offset_ptr &&o) noexcept
 Move constructor.
constexpr offset_ptr & operator= (const offset_ptr &o) noexcept
 Copy assignment.
constexpr offset_ptr & operator= (offset_ptr &&o) noexcept
 Move assignment.
 ~offset_ptr ()=default
constexpr offset_ptr (pointer v)
 Implicitly construct.
constexpr operator pointer () const noexcept
 Implicitly convert.
constexpr pointer operator-> () const noexcept
 Dereference.
constexpr _element_type & operator* () noexcept
 Dereference.
constexpr const _element_type & operator* () const noexcept
 Dereference.

Member Typedef Documentation

◆ pointer

template<class T>
using quickcpplib::_xxx::offset_ptr::offset_ptr< T >::pointer = T *

The pointer type.

◆ element_type

template<class T>
using quickcpplib::_xxx::offset_ptr::offset_ptr< T >::element_type = T

The pointed to type.

Constructor & Destructor Documentation

◆ offset_ptr() [1/5]

template<class T>
quickcpplib::_xxx::offset_ptr::offset_ptr< T >::offset_ptr ( )
inlineconstexprnoexcept

Construct a null pointer.

83{ _set(); }

◆ offset_ptr() [2/5]

template<class T>
quickcpplib::_xxx::offset_ptr::offset_ptr< T >::offset_ptr ( std::nullptr_t )
inlineconstexprnoexcept

Implicitly construct a null pointer.

85{ _set(); }

◆ offset_ptr() [3/5]

template<class T>
quickcpplib::_xxx::offset_ptr::offset_ptr< T >::offset_ptr ( const offset_ptr< T > & o)
inlineconstexprnoexcept

Copy constructor.

87{ _set(o._get()); }
Definition offset_ptr.hpp:67

◆ offset_ptr() [4/5]

template<class T>
quickcpplib::_xxx::offset_ptr::offset_ptr< T >::offset_ptr ( offset_ptr< T > && o)
inlineconstexprnoexcept

Move constructor.

89{ _set(o._get()); }

◆ ~offset_ptr()

template<class T>
quickcpplib::_xxx::offset_ptr::offset_ptr< T >::~offset_ptr ( )
default

◆ offset_ptr() [5/5]

template<class T>
quickcpplib::_xxx::offset_ptr::offset_ptr< T >::offset_ptr ( pointer v)
inlineconstexpr

Implicitly construct.

105{ _set(v); }

Member Function Documentation

◆ operator=() [1/2]

template<class T>
offset_ptr & quickcpplib::_xxx::offset_ptr::offset_ptr< T >::operator= ( const offset_ptr< T > & o)
inlineconstexprnoexcept

Copy assignment.

92 {
93 _set(o._get());
94 return *this;
95 }

◆ operator=() [2/2]

template<class T>
offset_ptr & quickcpplib::_xxx::offset_ptr::offset_ptr< T >::operator= ( offset_ptr< T > && o)
inlineconstexprnoexcept

Move assignment.

98 {
99 _set(o._get());
100 return *this;
101 }

◆ operator pointer()

template<class T>
quickcpplib::_xxx::offset_ptr::offset_ptr< T >::operator pointer ( ) const
inlineconstexprnoexcept

Implicitly convert.

108{ return _get(); }

◆ operator->()

template<class T>
pointer quickcpplib::_xxx::offset_ptr::offset_ptr< T >::operator-> ( ) const
inlineconstexprnoexcept

Dereference.

110{ return _get(); }

◆ operator*() [1/2]

template<class T>
_element_type & quickcpplib::_xxx::offset_ptr::offset_ptr< T >::operator* ( )
inlineconstexprnoexcept

Dereference.

112{ return *_get(); }

◆ operator*() [2/2]

template<class T>
const _element_type & quickcpplib::_xxx::offset_ptr::offset_ptr< T >::operator* ( ) const
inlineconstexprnoexcept

Dereference.

114{ return *_get(); }

The documentation for this class was generated from the following file: