add counter
This commit is contained in:
@@ -62,4 +62,10 @@ namespace hack::utils
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
template<typename T, T value = 0>
|
||||
struct counter
|
||||
{
|
||||
inline static T id = value;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user