MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / ~small_vector_impl

Method ~small_vector_impl

paddle/utils/small_vector.h:636–640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

634 small_vector_impl(const small_vector_impl &) = delete;
635
636 ~small_vector_impl() {
637 // Subclass has already destructed this vector's elements.
638 // If this wasn't grown from the inline copy, deallocate the old space.
639 if (!this->isSmall()) free(this->begin());
640 }
641
642 void clear() {
643 this->destroy_range(this->begin(), this->end());

Callers

nothing calls this directly

Calls 3

freeFunction · 0.85
isSmallMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected