Skip to content

Commit ab7f045

Browse files
committed
Add new FixedVector type to the types table.
1 parent de6a37a commit ab7f045

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

contributing/development/cpp_usage_guidelines.rst

+4
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ scripting API.
8686
| ``List`` | ``std::list`` | Linked list type. Generally slower than other array/vector types. Prefer using |
8787
| | | other types in new code, unless using ``List`` avoids the need for type conversions. |
8888
+------------------------+--------------------------+---------------------------------------------------------------------------------------+
89+
| ``FixedVector`` | ``std::array`` | Vector with a fixed capacity (more similar to ``boost::container::static_vector``). |
90+
| | | This container type is more efficient than other vector-like types because it makes |
91+
| | | no heap allocations. |
92+
+------------------------+--------------------------+---------------------------------------------------------------------------------------+
8993
| ``Span`` | ``std::span`` | Represents read-only access to a contiguous array without needing to copy any data. |
9094
| | | See `pull request description <https://github.com/godotengine/godot/pull/100293>`__ |
9195
| | | for details. |

0 commit comments

Comments
 (0)