Home
last modified time | relevance | path

Searched refs:SmallMap (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/libs/ftl/
Dsmall_map_test.cpp24 using ftl::SmallMap;
27 TEST(SmallMap, Example) { in TEST() argument
28 ftl::SmallMap<int, std::string, 3> map; in TEST()
47 EXPECT_EQ(map, SmallMap(ftl::init::map(-1, "xyz")(42, "???")(123, "abc"))); in TEST()
50 TEST(SmallMap, Construct) { in TEST() argument
53 SmallMap<int, std::string, 2> map; in TEST()
60 SmallMap<int, std::string, 5> map = in TEST()
67 EXPECT_EQ(map, SmallMap(ftl::init::map(123, "abc")(456, "def")(789, "ghi"))); in TEST()
71 SmallMap<int, std::string, 5> map = in TEST()
78 EXPECT_EQ(map, SmallMap(ftl::init::map(42, "???")(123, "abc")(-1, "\0\0\0"))); in TEST()
[all …]
/frameworks/native/include/ftl/
Dsmall_map.h58 class SmallMap final {
76 SmallMap() = default;
96 SmallMap(InitializerList<U, std::index_sequence<Sizes...>, Types...>&& list) in SmallMap() function
179 SmallMap(InitializerList<KeyValue<K, V>, std::index_sequence<Sizes...>, Types...>&&)
180 -> SmallMap<K, V, sizeof...(Sizes)>;
184 bool operator==(const SmallMap<K, V, N>& lhs, const SmallMap<Q, W, M>& rhs) {
199 inline bool operator!=(const SmallMap<K, V, N>& lhs, const SmallMap<Q, W, M>& rhs) {