search for: namedcounter

Displaying 1 result from an estimated 1 matches for "namedcounter".

2019 Aug 01
5
RFC: Strong typedef for LLVM
..., bool>::StrongTypedef; }; class Flag1Value : public NamedBoolean<Flag1Value> { public: using NamedBoolean::NamedBoolean; }; It can also be useful to have utilities for strong typedefed counters and accumulators: template<typename Tag, typename Int = int64_t> class NamedCounter : public StrongTypedef<Tag, Int>, public HasEqualityCompare<NamedCounter<Tag>>, public HasIncrement<NamedCounter<Tag>> { // ++ public: using StrongTypedef<Tag, int64_t>::StrongTypedef; }; template<typen...