add counter

This commit is contained in:
chatlanin
2022-09-15 09:47:15 +03:00
parent cb55987746
commit 9f47c86bc2
2 changed files with 18 additions and 0 deletions

View File

@@ -62,4 +62,10 @@ namespace hack::utils
return result;
}
template<typename T, T value = 0>
struct counter
{
inline static T id = value;
};
}