Searched refs:ours_ (Results 1 – 2 of 2) sorted by relevance
110 if (capacity_ >= new_capacity && ours_) return; in reserve()119 if (ours_) delete[] data_; // If we owned the old buffer, free it. in reserve()122 ours_ = true; // We own the new buffer. in reserve()130 if (!ours_ || new_size > capacity_) reserve(new_size); in resize()134 ours_ = true; in resize()141 if (ours_) delete[] data_; in clear()144 ours_ = true; in clear()154 if (ours_ && data_) delete[] data_; // If we owned the old buffer, free it. in TakeOwnershipOf()158 ours_ = true; in TakeOwnershipOf()162 if (ours_ && data_) delete[] data_; // If we owned the old buffer, free it. in PointTo()[all …]
333 bool ours_; // Do we own data_? variable335 Repr() : data_(NULL), size_(0), capacity_(0), ours_(true) {} in Repr()336 ~Repr() { if (ours_) delete[] data_; } in ~Repr()