36 #ifndef CIPRA_COUNTER_HPP
37 #define CIPRA_COUNTER_HPP
39 #include <type_traits>
59 template <
typename integralT =
int>
62 static_assert(std::is_integral<integralT>::value,
63 "Counter type is not integral.");
68 typedef typename std::make_unsigned<integralT>::type
94 std::atomic<index_type> count;
98 #include "counter.ipp"
100 #endif // #ifdef CIPRA_COUNTER_HPP
Manages the test numbers in test output.
Definition: counter.hpp:60
counter()
Initializes the atomic counter.
index_type new_test_number()
Returns a unique test number.
std::make_unsigned< integralT >::type index_type
The index type of the counter. The actual index type is going to be the unsigned counterpart of the t...
Definition: counter.hpp:63