template class ugcs::vsm::internal::Singleton_creator<T, typename std::enable_if<std::is_default_constructible<T>::value>::type>

Overview

Specialization for class which has default constructor. More…

#include <singleton.h>

template <class T>
class Singleton_creator<T, typename std::enable_if<std::is_default_constructible<T>::value>::type>
{
public:
    // methods

    template <typename... Args>
    static std::shared_ptr<T> Create(Args&&... args);
};

Detailed Documentation

Specialization for class which has default constructor.

Methods

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

Always can create an instance.