Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template <typename T, int count>
- struct counter {
- constexpr T sumup() const
- {
- T sum = 0;
- for (int i = 0; i < count; ++i)
- sum += i;
- return sum;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement