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:
-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