MCPcopy Create free account
hub / github.com/boostorg/histogram / equal_impl

Function equal_impl

test/adaptive_storage_test.cpp:101–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99
100template <typename T>
101void equal_impl() {
102 auto a = prepare<void>(1);
103 auto b = prepare(1, T(0));
104 BOOST_TEST_EQ(a[0].value(), 0.0);
105 BOOST_TEST_EQ(a[0].variance(), 0.0);
106 BOOST_TEST(a == b);
107 b.increase(0);
108 BOOST_TEST(!(a == b));
109
110 array_storage<unsigned> c;
111 c.reset(1);
112 auto d = prepare(1, T(0));
113 BOOST_TEST(c == d);
114 c.increase(0);
115 BOOST_TEST(!(c == d));
116}
117
118template <>
119void equal_impl<void>() {

Callers

nothing calls this directly

Calls 5

prepareFunction · 0.85
valueMethod · 0.45
varianceMethod · 0.45
increaseMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected