sparrow 0.3.0
Loading...
Searching...
No Matches
sparrow::crtp_base< D > Class Template Reference

Base class for CRTP base classes. More...

#include <crtp_base.hpp>

Inheritance diagram for sparrow::crtp_base< D >:
[legend]

Protected Types

using derived_type = D
 

Protected Member Functions

derived_typederived_cast ()
 
const derived_typederived_cast () const
 

Detailed Description

template<class D>
class sparrow::crtp_base< D >

Base class for CRTP base classes.

This class provides convenient derived cast methods for CRTP base classes.

Template Parameters
DThe derived type.

Definition at line 28 of file crtp_base.hpp.

Member Typedef Documentation

◆ derived_type

template<class D>
using sparrow::crtp_base< D >::derived_type = D
protected

Definition at line 32 of file crtp_base.hpp.

Member Function Documentation

◆ derived_cast() [1/2]

template<class D>
auto sparrow::crtp_base< D >::derived_cast ( )
nodiscardprotected

Definition at line 39 of file crtp_base.hpp.

Here is the caller graph for this function:

◆ derived_cast() [2/2]

template<class D>
auto sparrow::crtp_base< D >::derived_cast ( ) const
nodiscardprotected

Definition at line 45 of file crtp_base.hpp.


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