DPsim
Loading...
Searching...
No Matches
SharedFactory< T > Class Template Reference

#include <PtrFactory.h>

Inherited by CPS::SimNode< Complex >, and CPS::SimNode< Real >.

Static Public Member Functions

template<typename... Args>
static std::shared_ptr< T > make (Args &&...args)
 

Detailed Description

template<typename T>
class SharedFactory< T >

Curiously recurring template pattern (CRTP) to create create new shared_ptr instances. See: https://en.wikipedia.org/wiki/Curiously_recurring_template_pattern

Definition at line 16 of file PtrFactory.h.

Member Function Documentation

◆ make()

template<typename T>
template<typename... Args>
static std::shared_ptr< T > SharedFactory< T >::make ( Args &&... args)
inlinestatic

Definition at line 19 of file PtrFactory.h.


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