blob: abd375df59ea51a400b90d0a94263cd9b86f5039 [file] [log] [blame]
James Kuszmaul65891e02023-11-06 13:09:07 -08001#ifndef AOS_CONTAINERS_INLINED_VECTOR_H_
2#define AOS_CONTAINERS_INLINED_VECTOR_H_
3
4#include <vector>
5
6#include "absl/container/inlined_vector.h"
7
8namespace aos {
9
10template <typename T, size_t N>
11struct InlinedVector : public absl::InlinedVector<T, N> {};
12
13// Specialized for the N == 0 case because absl::InlinedVector doesn't support
14// it for some reason.
15template <typename T>
16struct InlinedVector<T, 0> : public std::vector<T> {};
17} // namespace aos
18#endif // AOS_CONTAINERS_INLINED_VECTOR_H_