MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / clear

Method clear

include/stringzillas/types.hpp:292–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290 ~safe_vector() noexcept { reset(); }
291
292 void clear() noexcept {
293 if constexpr (!std::is_trivially_destructible<value_type>::value)
294 for (size_type i = 0; i < size_; ++i) data_[i].~value_type();
295 size_ = 0;
296 }
297
298 void reset() noexcept {
299 clear();

Callers 2

test_utf8_ci_find_fuzzFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_utf8_ci_find_fuzzFunction · 0.36