Home
last modified time | relevance | path

Searched refs:StaticVector (Results 1 – 6 of 6) sorted by relevance

/frameworks/native/libs/ftl/
Dstatic_vector_test.cpp29 using ftl::StaticVector;
32 TEST(StaticVector, Example) { in TEST() argument
33 ftl::StaticVector<char, 3> vector; in TEST()
46 EXPECT_EQ(vector, (ftl::StaticVector{'c', 'b'})); in TEST()
52 vector = ftl::StaticVector(array); in TEST()
53 EXPECT_EQ(vector, (ftl::StaticVector{'h', 'i', '\0'})); in TEST()
55 ftl::StaticVector strings = ftl::init::list<std::string>("abc")("123456", 3u)(3u, '?'); in TEST()
63 TEST(StaticVector, Construct) { in TEST() argument
66 StaticVector<std::string, 2> vector; in TEST()
72 StaticVector vector(floats); in TEST()
[all …]
Doptional_test.cpp34 using ftl::StaticVector;
98 EXPECT_EQ(14u, Optional(StaticVector{"upside"s, "down"s}) in TEST()
99 .transform([](StaticVector<std::string, 3>&& v) { in TEST()
103 .transform([](const StaticVector<std::string, 3>& v) { in TEST()
151 using StringVector = StaticVector<std::string, 3>; in TEST()
152 EXPECT_EQ(14u, Optional(StaticVector{"-"s, "1"s}) in TEST()
191 using StringVector = StaticVector<std::string, 3>; in TEST()
192 EXPECT_EQ(999, Optional(StaticVector{"1"s, "0"s, "0"s}) in TEST()
198 return Optional(StaticVector{"9"s, "9"s, "9"s}); in TEST()
Dalgorithm_test.cpp30 const ftl::StaticVector vector = {"upside"sv, "down"sv, "cake"sv}; in TEST()
33 const ftl::SmallMap map = ftl::init::map<int, ftl::StaticVector<std::string_view, 3>>( in TEST()
47 EXPECT_EQ(opt->get(), ftl::StaticVector("tiramisu"sv)); in TEST()
Dsmall_vector_test.cpp131 ftl::StaticVector doubles = {.1, .2, .3}; in TEST()
/frameworks/native/include/ftl/
Dstatic_vector.h79 class StaticVector final : details::ArrayTraits<T>,
80 details::ArrayIterators<StaticVector<T, N>, T>,
81 details::ArrayComparators<StaticVector> {
86 friend class StaticVector; variable
93 using Iter = details::ArrayIterators<StaticVector, T>;
121 StaticVector() = default;
124 StaticVector(const StaticVector& other) in StaticVector() function
125 : StaticVector(kIteratorRange, other.begin(), other.end()) {} in StaticVector()
127 StaticVector(StaticVector&& other) { swap<true>(other); } in StaticVector() function
131 StaticVector(const StaticVector<U, M>& other) in StaticVector() function
[all …]
Dsmall_vector.h81 using Static = StaticVector<T, N>;
442 SmallVector(StaticVector<T, N>&&) -> SmallVector<T, N>;