begenning the refactor

This commit is contained in:
Kbz-8
2024-03-27 23:03:54 +01:00
parent b5983ac24b
commit 0e04356ea7
131 changed files with 2135 additions and 1192 deletions

33
runtime/Includes/Utils/NonCopyable.h git.filemode.normal_file
View File

@@ -0,0 +1,33 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* non_copyable.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/08 19:20:13 by maldavid #+# #+# */
/* Updated: 2024/03/24 14:42:48 by maldavid ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef __MLX_NON_COPYABLE__
#define __MLX_NON_COPYABLE__
namespace mlx
{
class NonCopyable
{
protected:
NonCopyable() = default;
virtual ~NonCopyable() = default;
public:
NonCopyable(const NonCopyable&) = delete;
NonCopyable(NonCopyable&&) noexcept = default;
NonCopyable &operator=(const NonCopyable&) = delete;
NonCopyable &operator=(NonCopyable&&) noexcept = default;
};
}
#endif // __MLX_NON_COPYABLE__