Commit Graph

5 Commits

Author SHA1 Message Date
Wyatt Hepler
ba1bb1ff43 Add a few missing README.md files
Change-Id: Idf9c70e5bf062150abfeae84c3fe0794062872bc
2020-03-02 15:35:58 -08:00
Rob Mohr
a0ba54f648 Roll GN to 239533d
This caused gn format to flag many things which were also fixed.

Change-Id: Ie1d9081a1b08047bec52c60f54d2a94366be1ba6
2020-02-28 01:33:18 +00:00
Wyatt Hepler
75ea8dba2f pw_containers: Use unsigned short for Vector sizes
Since pw::Vectors are statically allocated, 65535 is a reasonable upper
limit for the number of entries in the vector.

Change-Id: I5a2fda53d522cffd70138d34b60273c6083ffe41
2020-02-26 08:50:00 -08:00
Wyatt Hepler
1234f5ecc6 pw_containers: Remove static max_size() function
Remove the static version of max_size() for consistency with std::vector
and std::array and to avoid potentially reporting inaccurate values in
unusual situations such as working with aliased types.

Change-Id: I5647ab7e882b65c09b8d616a81835c92b85d8abb
2020-02-19 14:38:55 -08:00
Wyatt Hepler
76293e3dea pw_containers: Vector class
pw::Vector implements the std::vector interface, but uses a fixed size
buffer instead of dynamically allocated memory. Vectors must be declared
with their max size (Vector<Type, kMaxSize>) but may be referred to
without the max size (Vector<Type>).

Change-Id: Iac16996109b55fdf8fce73a97e8e84072eb8d166
2020-02-10 16:53:13 -08:00