Home
last modified time | relevance | path

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

/aosp12/frameworks/native/libs/ftl/
H A 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()
71 SmallMap<int, std::string, 5> map = in TEST()
93 TEST(SmallMap, Find) { in TEST() argument
107 ftl::SmallMap map = ftl::init::map('a', 'A')('b', 'B')('c', 'C'); in TEST()
[all …]
/aosp12/frameworks/native/include/ftl/
H A 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) {