/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Singleton.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: maldavid +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/10/08 19:18:46 by maldavid #+# #+# */ /* Updated: 2024/03/27 18:20:11 by maldavid ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef __MLX_SINGLETON__ #define __MLX_SINGLETON__ #include namespace mlx { template class Singleton : public NonCopyable { public: inline static T& Get() { static T instance; return instance; } }; } #endif // __MLX_SINGLETON__