5#include <unordered_map>
7#include "flutter/fml/container.h"
9#include "gtest/gtest.h"
14TEST(ContainerTest, MapEraseIf) {
15 std::unordered_map<int, int>
map = {{0, 1}, {2, 3}, {4, 5}};
17 fml::erase_if(map, [](std::unordered_map<int, int>::iterator it) {
18 return it->first == 0 || it->second == 5;
21 EXPECT_EQ(
map.size(), 1u);
#define TEST(S, s, D, expected)
void erase_if(Collection &container, std::function< bool(typename Collection::iterator)> predicate)
SI auto map(std::index_sequence< I... >, Fn &&fn, const Args &... args) -> skvx::Vec< sizeof...(I), decltype(fn(args[0]...))>
#define EXPECT_TRUE(handle)