OLD | NEW |
(Empty) | |
| 1 # base/containers library |
| 2 |
| 3 This directory contains some STL-like containers. |
| 4 |
| 5 Things should be moved here that are generally applicable across the code base. |
| 6 Don't add things here just because you need them in one place and think others |
| 7 may someday want something similar. You can put specialized containers in |
| 8 your component's directory and we can promote them here later if we feel there |
| 9 is broad applicability. |
| 10 |
| 11 ## Design and naming |
| 12 |
| 13 Containers should adhere as closely to STL as possible. Functions and behaviors |
| 14 not present in STL should only be added when they are related to the specific |
| 15 data structure implemented by the container. |
| 16 |
| 17 For STL-like containers our policy is that they should use STL-like naming even |
| 18 when it may conflict with the style guide. So functions and class names should |
| 19 be lower case with underscores. Non-STL-like classes and functions should use |
| 20 Google naming. Be sure to use the base namespace. |
OLD | NEW |