Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2022-09-07 14:54:22 +0300
committerJacques Lucke <jacques@blender.org>2022-09-07 14:54:22 +0300
commitff42240ea24d77ce758da316502723d07d8b14a9 (patch)
tree9f351d156ac931bcdd39dc7116a7aa3900fbdfc4
parent1060f4a6ad3de4def5413750d8e3a78c14b55410 (diff)
progress
-rw-r--r--source/blender/blenlib/BLI_vector_list.hh9
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