diff options
author | Jacques Lucke <jacques@blender.org> | 2020-04-23 21:05:53 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-04-23 21:05:53 +0300 |
commit | 8f5a4a4da33375b591dd77e424096878ff2e2aaf (patch) | |
tree | 7cbc12ee790d660ac6703f7e95dd7e658701093a /source/blender/blenlib/BLI_stack.hh | |
parent | 7d98dfd6bb3921e661f5ba5adb04ffd9876395f1 (diff) |
BLI: various data structure improvements
* Rename template parameter N to InlineBufferCapacity
* Expose InlineBufferCapacity parameter for Set and Map
* Add some comments
* Fixed an error that I introduced recently
Diffstat (limited to 'source/blender/blenlib/BLI_stack.hh')
-rw-r--r-- | source/blender/blenlib/BLI_stack.hh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_stack.hh b/source/blender/blenlib/BLI_stack.hh index a0e8cec3b6f..7f1f9f9cc10 100644 --- a/source/blender/blenlib/BLI_stack.hh +++ b/source/blender/blenlib/BLI_stack.hh @@ -27,9 +27,10 @@ namespace BLI { -template<typename T, uint N = 4, typename Allocator = GuardedAllocator> class Stack { +template<typename T, uint InlineBufferCapacity = 4, typename Allocator = GuardedAllocator> +class Stack { private: - Vector<T, N, Allocator> m_elements; + Vector<T, InlineBufferCapacity, Allocator> m_elements; public: Stack() = default; |