metaprogramming/src/Data.hpp

15 lines
219 B
C++
Raw Normal View History

2024-11-27 19:27:51 +00:00
#pragma once
#include <cstdint>
template<typename Type, Type Value>
struct Data {
using type = Type;
static constexpr Type value = Value;
};
template<int64_t Value>
struct Number :
public Data<int64_t, Value>
{};