tree: e144ff01c64cb41174a893ca775df0b8d2207589 [path history] [tgz]
  1. array_view.h
  2. array_view_unittest.cc
  3. BUILD.gn
  4. circular_deque.h
  5. circular_deque_unittest.cc
  6. OWNERS
  7. ownership.h
  8. README.md
  9. template_util.h
  10. test_objects.h
  11. vector_buffer.h
  12. vector_buffer_unittest.cc
src/lib/containers/cpp/README.md

Specialized C++ Containers

Scope

This directory containers some specialized data structures that are meant to augment the C++ Standard Library. Do not add containers that solve the same problems that a container from the Standard Library does. Do not add containers that are useful in the kernel. Those should go in the FBL.

This library never produces I/O.

Dependencies

Code in this library can only depend on the following sources:

  • The C Standard Library.
  • The C++ Standard Library.
  • The Safemath Library.

No other dependencies are allowed.

Supported Platforms

Code in this library should build both for host and target. Unit tests should validate the behaviour on both host and target.

Naming Convention

The rational is that if a container has STL-like behaviour, it should follow the STL naming convention. That is, the name classes use under_score instead of the PascalCase used in the rest of Fuchsia.