| 24 | }; |
| 25 | |
| 26 | TEST_F(ReusableVectorTest, trivial_as_element) { |
| 27 | ASSERT_TRUE(::std::is_trivially_destructible<SwissVector<int>>::value); |
| 28 | ASSERT_TRUE( |
| 29 | ::std::is_trivially_destructible<SwissVector<SwissString>>::value); |
| 30 | struct S { |
| 31 | ~S() {} |
| 32 | } s; |
| 33 | ASSERT_FALSE(::std::is_trivially_destructible<SwissVector<S>>::value); |
| 34 | } |
| 35 | |
| 36 | TEST_F(ReusableVectorTest, constructible_with_allocator) { |
| 37 | { |
nothing calls this directly
no test coverage detected