diff options
author | Jacques Lucke <jacques@blender.org> | 2022-09-07 14:54:22 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-09-07 14:54:22 +0300 |
commit | ff42240ea24d77ce758da316502723d07d8b14a9 (patch) | |
tree | 9f351d156ac931bcdd39dc7116a7aa3900fbdfc4 | |
parent | 1060f4a6ad3de4def5413750d8e3a78c14b55410 (diff) |
progress
-rw-r--r-- | source/blender/blenlib/BLI_vector_list.hh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_vector_list.hh b/source/blender/blenlib/BLI_vector_list.hh index cefd60b88bd..34dac27e053 100644 --- a/source/blender/blenlib/BLI_vector_list.hh +++ b/source/blender/blenlib/BLI_vector_list.hh @@ -28,10 +28,19 @@ namespace blender { +template<typename T> struct VectorListChunk { + /** Start of this chunk. */ + T *begin; + /** End of this chunk. */ + T *capacity_end; +}; template<typename T, int64_t InlineBufferCapacity = default_inline_buffer_capacity(sizeof(T)), typename Allocator = GuardedAllocator> class VectorList { + T *current_end_; + T *current_capacity_end_; + VectorListChunk *current_chunk_; }; } // namespace blender |