From ab7f0455b33f7a5e34d34bef82235a3fb387ccc8 Mon Sep 17 00:00:00 2001 From: Lukas Tenbrink Date: Thu, 1 May 2025 14:32:03 +0200 Subject: [PATCH] Add new `FixedVector` type to the types table. --- contributing/development/cpp_usage_guidelines.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contributing/development/cpp_usage_guidelines.rst b/contributing/development/cpp_usage_guidelines.rst index 06ef042ed0f..59e0c47fb46 100644 --- a/contributing/development/cpp_usage_guidelines.rst +++ b/contributing/development/cpp_usage_guidelines.rst @@ -86,6 +86,10 @@ scripting API. | ``List`` | ``std::list`` | Linked list type. Generally slower than other array/vector types. Prefer using | | | | other types in new code, unless using ``List`` avoids the need for type conversions. | +------------------------+--------------------------+---------------------------------------------------------------------------------------+ +| ``FixedVector`` | ``std::array`` | Vector with a fixed capacity (more similar to ``boost::container::static_vector``). | +| | | This container type is more efficient than other vector-like types because it makes | +| | | no heap allocations. | ++------------------------+--------------------------+---------------------------------------------------------------------------------------+ | ``Span`` | ``std::span`` | Represents read-only access to a contiguous array without needing to copy any data. | | | | See `pull request description `__ | | | | for details. |