1
0
mirror of synced 2024-11-15 03:27:40 +01:00
ImHex/lib/libimhex/include/hex/helpers/concepts.hpp
2023-04-18 10:06:47 +02:00

24 lines
405 B
C++

#pragma once
#include <hex.hpp>
#include <type_traits>
#include <memory>
#include <concepts>
namespace hex {
template<typename T>
struct always_false : std::false_type { };
template<typename T, size_t Size>
concept has_size = sizeof(T) == Size;
template<typename T>
class ICloneable {
public:
[[nodiscard]] virtual std::unique_ptr<T> clone() const = 0;
};
}