utility 2026.1.9
A comprehensive C++ utilities library tailored for the development of modern desktop and extended reality (XR) applications.
Loading...
Searching...
No Matches
utility::IsSingletonOf Concept Reference

Concept to ensure a Singleton type is provided. More...

#include <headers/utility/singleton.hpp>

Concept definition

template<typename Type>
concept utility::IsSingletonOf = requires {
{ Type::getInstance() } -> std::same_as<Type &>;
}
Concept to ensure a Singleton type is provided.
Definition singleton.hpp:80

Detailed Description

Concept to ensure a Singleton type is provided.

Template Parameters
TypeThe type to check.

Definition at line 80 of file singleton.hpp.