MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / ~sequence

Method ~sequence

modules/core/core/include/OpenString/common/sequence.h:186–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184
185 template <class T, u64 I>
186 sequence<T, I>::~sequence() noexcept
187 {
188 for(u64 i = 0; i < this->size(); ++i)
189 std::destroy_at(this->data_at(i));
190 this->size_ = 0;
191 if(!this->is_short())
192 {
193 const byte* data = reinterpret_cast<byte*>(this->as_large().heap_storage);
194 allocator<byte>::deallocate_array(data);
195 }
196 }
197
198 template <class T, u64 I>
199 typename sequence<T, I>::const_iterator sequence<T, I>::cbegin() const noexcept

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.95
data_atMethod · 0.95
is_shortMethod · 0.95
destroy_atFunction · 0.85

Tested by

no test coverage detected