Lines Matching defs:M
20 IntervalMap<unsigned, unsigned, IntervalCoalescing::Enabled> M;
22 EXPECT_TRUE(M.empty());
23 EXPECT_TRUE(M.begin() == M.end());
24 EXPECT_TRUE(M.find(0) == M.end());
29 IntervalMap<unsigned, unsigned, IntervalCoalescing::Enabled> M;
31 M.insert(7, 8, 42);
33 EXPECT_FALSE(M.empty());
34 EXPECT_EQ(std::next(M.begin()), M.end());
35 EXPECT_EQ(M.find(7), M.begin());
36 EXPECT_EQ(M.find(8), M.end());
37 EXPECT_EQ(M.lookup(7), 42U);
38 EXPECT_EQ(M.lookup(8), 0U); // 8 not present, so should return unsigned().
141 IntervalMap<unsigned, unsigned, IntervalCoalescing::Enabled> M;
143 M.insert(7, 10, 42);
144 EXPECT_FALSE(M.empty());
145 M.erase(7, 10);
146 EXPECT_TRUE(M.empty());
152 IntervalMap<unsigned, unsigned, IntervalCoalescing::Enabled> M;
154 M.insert(7, 10, 42);
155 EXPECT_FALSE(M.empty());
156 M.erase(9, 10);
157 EXPECT_EQ(std::next(M.begin()), M.end());
158 EXPECT_EQ(M.begin()->first.first, 7U);
159 EXPECT_EQ(M.begin()->first.second, 9U);
165 IntervalMap<unsigned, unsigned, IntervalCoalescing::Enabled> M;
167 M.insert(7, 10, 42);
168 EXPECT_FALSE(M.empty());
169 M.erase(7, 8);
170 EXPECT_EQ(std::next(M.begin()), M.end());
171 EXPECT_EQ(M.begin()->first.first, 8U);
172 EXPECT_EQ(M.begin()->first.second, 10U);
178 IntervalMap<unsigned, unsigned, IntervalCoalescing::Enabled> M;
180 M.insert(7, 10, 42);
181 EXPECT_FALSE(M.empty());
182 M.erase(8, 9);
183 EXPECT_EQ(std::next(std::next(M.begin())), M.end());
184 EXPECT_EQ(M.begin()->first.first, 7U);
185 EXPECT_EQ(M.begin()->first.second, 8U);
186 EXPECT_EQ(std::next(M.begin())->first.first, 9U);
187 EXPECT_EQ(std::next(M.begin())->first.second, 10U);
196 IntervalMap<unsigned, S, IntervalCoalescing::Disabled> M;
198 M.insert(7, 8, S());
200 EXPECT_FALSE(M.empty());
201 EXPECT_EQ(std::next(M.begin()), M.end());
202 EXPECT_EQ(M.find(7), M.begin());
203 EXPECT_EQ(M.find(8), M.end());