From f7c0f1b8b83ac475755b633abf59cf9f447b2d49 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Tue, 9 Jun 2020 11:58:47 +0200 Subject: BLI: rename ArrayRef to Span This also renames `MutableArrayRef` to `MutableSpan`. The name "Span" works better, because `std::span` will provide similar functionality in C++20. Furthermore, a shorter, more concise name for a common data structure is nice. --- source/blender/blenlib/BLI_set.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/blenlib/BLI_set.hh') diff --git a/source/blender/blenlib/BLI_set.hh b/source/blender/blenlib/BLI_set.hh index 5bdf99360cb..ece9fb05d8c 100644 --- a/source/blender/blenlib/BLI_set.hh +++ b/source/blender/blenlib/BLI_set.hh @@ -276,7 +276,7 @@ class Set { * We might be able to make this faster than sequentially adding all keys, but that is not * implemented yet. */ - void add_multiple(ArrayRef keys) + void add_multiple(Span keys) { for (const Key &key : keys) { this->add(key); @@ -287,7 +287,7 @@ class Set { * Convenience function to add many new keys to the set at once. The keys must not exist in the * set before and there must not be duplicates in the array. */ - void add_multiple_new(ArrayRef keys) + void add_multiple_new(Span keys) { for (const Key &key : keys) { this->add_new(key); @@ -726,7 +726,7 @@ template class StdUnorderedSetWrapper { return m_set.insert(std::move(key)).second; } - void add_multiple(ArrayRef keys) + void add_multiple(Span keys) { for (const Key &key : keys) { m_set.insert(key); -- cgit v1.2.3