1 #ifndef DUNE_ISTL_COMMON_COUNTER_HH
2 #define DUNE_ISTL_COMMON_COUNTER_HH
11 #include <dune/common/typeutilities.hh>
15 #define DUNE_GET_COUNTER(Tag) \
16 (counterFunc(Dune::PriorityTag<maxcount>{}, Tag{}, Dune::CounterImpl::ADLTag{}))
18 #define DUNE_INC_COUNTER(Tag) \
20 namespace CounterImpl { \
21 constexpr std::size_t \
22 counterFunc(Dune::PriorityTag<DUNE_GET_COUNTER(Tag)+1> p, Tag, ADLTag) \
28 static_assert(true, "unfudge indentation")
33 namespace CounterImpl {
38 constexpr std::size_t counterFunc(Dune::PriorityTag<0>, Tag, ADLTag)
constexpr std::size_t maxcount
Definition: counter.hh:13
Definition: allocator.hh:9