Simple-Utility v2.3.1
|
Utility type, which can be used as a base class for the crtp pattern. More...
#include <CRTPBase.hpp>
Protected Member Functions | |
constexpr const Derived & | derived () const noexcept |
Up-casts the this pointer to a const lvalue reference to Derived . | |
constexpr Derived & | derived () noexcept |
Up-casts the this pointer to a lvalue reference to Derived . | |
constexpr | CRTPBase () noexcept |
Default constructor, performing compile-time checks. | |
CRTPBase (const CRTPBase &)=default | |
Defaulted copy-constructor. | |
CRTPBase & | operator= (const CRTPBase &)=default |
Defaulted copy-assignment operator. | |
CRTPBase (CRTPBase &&)=default | |
Defaulted move-constructor. | |
CRTPBase & | operator= (CRTPBase &&)=default |
Defaulted move-assignment operator. | |
~CRTPBase ()=default | |
Defaulted destructor. | |
constexpr bool | operator== (const CRTPBase &) const noexcept=default |
Defaulted equality operator. | |
Utility type, which can be used as a base class for the crtp pattern.
Derived | The derived type. |
Disambiguity | In cases of multiple inheritance, this param can be used to disambiguity the base class. |
|
inlineconstexprprotectednoexcept |
Default constructor, performing compile-time checks.
|
protecteddefault |
Defaulted copy-constructor.
|
protecteddefault |
Defaulted move-constructor.
|
protecteddefault |
Defaulted destructor.
|
inlineconstexprprotectednoexcept |
Up-casts the this pointer to a const lvalue reference to Derived
.
|
inlineconstexprprotectednoexcept |
Up-casts the this pointer to a lvalue reference to Derived
.
|
protecteddefault |
Defaulted copy-assignment operator.
|
protecteddefault |
Defaulted move-assignment operator.
|
constexprprotecteddefaultnoexcept |
Defaulted equality operator.