// // Tests for // size_t size() const; // #include #include "test_policy.h" #include #include struct T { int i; }; template static void tests() { { test_bounded_array const array = {T{0}, T{1}, T{2}, T{3}, T{4}}; size_t size = array.size(); CHECK(size == 5); } { test_bounded_array const array = {}; size_t size = array.size(); CHECK(size == 0); } } T_DECL(size, "bounded_array.size") { tests(); }