Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/BLI_array.hh
| Show First 20 Lines • Show All 334 Lines • ▼ Show 20 Lines | std::reverse_iterator<const T *> rbegin() const | ||||
| return std::reverse_iterator<T *>(this->end()); | return std::reverse_iterator<T *>(this->end()); | ||||
| } | } | ||||
| std::reverse_iterator<const T *> rend() const | std::reverse_iterator<const T *> rend() const | ||||
| { | { | ||||
| return std::reverse_iterator<T *>(this->begin()); | return std::reverse_iterator<T *>(this->begin()); | ||||
| } | } | ||||
| /** | /** | ||||
| * Get an index range containing all valid indices for this array. | |||||
| */ | |||||
| IndexRange index_range() const | |||||
| { | |||||
| return IndexRange(size_); | |||||
| } | |||||
| /** | |||||
| * Sets the size to zero. This should only be used when you have manually destructed all elements | * Sets the size to zero. This should only be used when you have manually destructed all elements | ||||
| * in the array beforehand. Use with care. | * in the array beforehand. Use with care. | ||||
| */ | */ | ||||
| void clear_without_destruct() | void clear_without_destruct() | ||||
| { | { | ||||
| size_ = 0; | size_ = 0; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines | |||||