velox/experimental/codegen/vector_function/VectorReader-inl.h
void resize(size_t newSize) {
      if (newSize <= size_) {
        // shrinking
        size_ = newSize;
        return;
      }

      // newSize > size
      if (newSize <= capacity_) {
        size_ = newSize;
      } else {
        reserve(newSize);
        resize(newSize);
      }
    }
/// Has the semantics as std::string, except that it does not fill the
/// space[size(), newSize] with 0 but rather leaves it as is
Has the semantics as std::string, except that it does not fill the
space[size(), newSize] with 0 but rather leaves it as is
Has the semantics as std :: string except that it does not fill the space [ size () newSize ] with 0 but rather leaves it as is
void resize(size_t newSize) {
      if (newSize <= size_) {
        size_ = newSize;
        return;
      }
      if (newSize <= capacity_) {
        size_ = newSize;
      } else {
        reserve(newSize);
        resize(newSize);
      }
    }
void resize ( size_t newSize ) { if ( newSize <= size_ ) { size_ = newSize ; return ; } if ( newSize <= capacity_ ) { size_ = newSize ; } else { reserve ( newSize ) ; resize ( newSize ) ; } }
Has the semantics as std::string, except that it does not fill the
space[size(), newSize] with 0 but rather leaves it as is
Has the semantics as std :: string except that it does not fill the space [ size () newSize ] with 0 but rather leaves it as is
// shrinking // newSize > size