Lines Matching refs:v
26 static bool allocationIsInternal(VectorType& v) { in allocationIsInternal() argument
29 return (char*)(&v) <= (char*)(&v[0]) && (char*)(&v + 1) >= (char*)(&v[0] + v.capacity()); in allocationIsInternal()
34 std::vector<int> v; in TEST() local
36 v.push_back(i); in TEST()
37 EXPECT_FALSE(allocationIsInternal(v)); in TEST()
42 FatVector<int, 4> v; in TEST() local
43 EXPECT_EQ(4u, v.capacity()); in TEST()
47 v.push_back(i); in TEST()
48 EXPECT_TRUE(allocationIsInternal(v)); in TEST()
53 v.push_back(i); in TEST()
54 EXPECT_FALSE(allocationIsInternal(v)); in TEST()
60 FatVector<int, 4> v(32); in TEST() local
61 EXPECT_EQ(32u, v.capacity()); in TEST()
62 EXPECT_EQ(32u, v.size()); in TEST()
63 EXPECT_FALSE(allocationIsInternal(v)); in TEST()
66 FatVector<int, 4> v(4); in TEST() local
67 EXPECT_EQ(4u, v.capacity()); in TEST()
68 EXPECT_EQ(4u, v.size()); in TEST()
69 EXPECT_TRUE(allocationIsInternal(v)); in TEST()
72 FatVector<int, 4> v(2); in TEST() local
73 EXPECT_EQ(4u, v.capacity()); in TEST()
74 EXPECT_EQ(2u, v.size()); in TEST()
75 EXPECT_TRUE(allocationIsInternal(v)); in TEST()
80 FatVector<int, 10> v; in TEST() local
81 EXPECT_TRUE(allocationIsInternal(v)); in TEST()
84 v.resize(11); in TEST()
85 EXPECT_FALSE(allocationIsInternal(v)); in TEST()
89 v.resize(10); in TEST()
90 v.shrink_to_fit(); in TEST()
91 EXPECT_TRUE(allocationIsInternal(v)); in TEST()
98 FatVector<TestUtils::SignalingDtor, 0> v; in TEST() local
99 v.emplace_back(&count); in TEST()
100 EXPECT_FALSE(allocationIsInternal(v)); in TEST()
110 FatVector<TestUtils::SignalingDtor, 10> v; in TEST() local
112 v.emplace_back(&count); in TEST()
113 EXPECT_TRUE(allocationIsInternal(v)); in TEST()