pans
2017-08-09 02aab60af4ebfadb0a51d44135c734d91430e11d
VisitFace/RtspNativeCodec/app/libs/capnproto/include/kj/vector.h
@@ -43,7 +43,6 @@
public:
  inline Vector() = default;
  inline explicit Vector(size_t capacity): builder(heapArrayBuilder<T>(capacity)) {}
  inline Vector(Array<T>&& array): builder(kj::mv(array)) {}
  inline operator ArrayPtr<T>() { return builder; }
  inline operator ArrayPtr<const T>() const { return builder; }
@@ -70,18 +69,6 @@
      setCapacity(size());
    }
    return builder.finish();
  }
  template <typename U>
  inline bool operator==(const U& other) const { return asPtr() == other; }
  template <typename U>
  inline bool operator!=(const U& other) const { return asPtr() != other; }
  inline ArrayPtr<T> slice(size_t start, size_t end) {
    return asPtr().slice(start, end);
  }
  inline ArrayPtr<const T> slice(size_t start, size_t end) const {
    return asPtr().slice(start, end);
  }
  template <typename... Params>
@@ -116,7 +103,9 @@
  }
  inline void clear() {
    builder.resize(0);
    while (builder.size() > 0) {
      builder.removeLast();
    }
  }
  inline void truncate(size_t size) {