flyweight.hpp
Loading...
Searching...
No Matches
Public Member Functions | List of all members
flyweight::default_creator< T, Args > Struct Template Reference

#include <flyweight.hpp>

Public Member Functions

operator() (Args &&... args)
 Default creator implementation, just call the value constructor forwarding the passed arguments.
 

Detailed Description

template<typename T, typename... Args>
struct flyweight::default_creator< T, Args >

The default Creator functor used by flyweight. Constructs the value T from arguments of type Args.

Template Parameters
TType that will be created.
Args...Arguments used to construct the value.

Member Function Documentation

◆ operator()()

template<typename T , typename... Args>
T flyweight::default_creator< T, Args >::operator() ( Args &&...  args)
inline

Default creator implementation, just call the value constructor forwarding the passed arguments.


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