Searched defs:test_helper (Results 1 – 1 of 1) sorted by relevance
148 struct test_helper { struct157 struct test_helper<minimalNComparable<N> > { argument167 struct test_helper<ThrowingConstructor> { argument168 static inline void init(ThrowingConstructor &sum) { sum.m_cnt = 0; } in init()169 static inline void sum(ThrowingConstructor &sum, const int addend ) { sum.m_cnt += addend; } in sum()170 …void sum(ThrowingConstructor &sum, const double addend ) { sum.m_cnt += static_cast<int>(addend); } in sum()171 …id sum(ThrowingConstructor &sum, const ThrowingConstructor &addend ) { sum.m_cnt += addend.m_cnt; } in sum()172 …ic inline void set(ThrowingConstructor &v, const int value ) { v.m_cnt = static_cast<int>(value); } in set()173 …tatic inline double get(const ThrowingConstructor &sum ) { return static_cast<double>(sum.m_cnt); } in get()