Lines Matching refs:aPool
39 vector_pool<int> aPool; in TEST_F() local
41 std::ptrdiff_t nIdx1 = aPool.alloc(); in TEST_F()
42 std::ptrdiff_t nIdx2 = aPool.alloc(); in TEST_F()
43 std::ptrdiff_t nIdx3 = aPool.alloc(); in TEST_F()
48 aPool.free(nIdx2); in TEST_F()
49 aPool.free(nIdx3); in TEST_F()
51 nIdx2 = aPool.alloc(); in TEST_F()
52 nIdx3 = aPool.alloc(); in TEST_F()
60 vector_pool<int> aPool; in TEST_F() local
62 std::ptrdiff_t nIdx1 = aPool.store(0); in TEST_F()
63 ASSERT_TRUE(aPool.get(nIdx1) == 0) << "allocator value semantics 1"; in TEST_F()
65 std::ptrdiff_t nIdx2 = aPool.store(1); in TEST_F()
66 ASSERT_TRUE(aPool.get(nIdx2) == 1) << "allocator value semantics 2"; in TEST_F()
68 std::ptrdiff_t nIdx3 = aPool.store(2); in TEST_F()
69 ASSERT_TRUE(aPool.get(nIdx3) == 2) << "allocator value semantics 3"; in TEST_F()
71 aPool.free(nIdx2); in TEST_F()
72 aPool.free(nIdx3); in TEST_F()
74 nIdx2 = aPool.store(1); in TEST_F()
75 ASSERT_TRUE(aPool.get(nIdx2) == 1) << "allocator value semantics 2 after fragmentation"; in TEST_F()
77 nIdx3 = aPool.store(2); in TEST_F()
78 ASSERT_TRUE(aPool.get(nIdx3) == 2) << "allocator value semantics 3 after fragmentation"; in TEST_F()