3 #ifndef DUNE_ISTL_COMMON_COUNTER_HH 4 #define DUNE_ISTL_COMMON_COUNTER_HH 13 #include <dune/common/typeutilities.hh> 17 #define DUNE_GET_COUNTER(Tag) \ 18 (counterFunc(Dune::PriorityTag<maxcount>{}, Tag{}, Dune::CounterImpl::ADLTag{})) 20 #define DUNE_INC_COUNTER(Tag) \ 22 namespace CounterImpl { \ 23 constexpr std::size_t \ 24 counterFunc(Dune::PriorityTag<DUNE_GET_COUNTER(Tag)+1> p, Tag, ADLTag) \ 30 static_assert(true, "unfudge indentation") 35 namespace CounterImpl {
40 constexpr std::size_t counterFunc(Dune::PriorityTag<0>, Tag, ADLTag)
48 #endif // DUNE_ISTL_COMMON_COUNTER_HH constexpr std::size_t maxcount
Definition: counter.hh:15
Definition: allocator.hh:11