Searched refs:ours_ (Results 1 – 2 of 2) sorted by relevance
31 if (ours_ && data_) delete[] data_; in operator =()35 ours_ = src.ours_; in operator =()36 src.ours_ = false; in operator =()41 if (ours_ && data_) delete[] data_; // If we owned the old buffer, free it. in PointTo()45 ours_ = false; in PointTo()57 if (!ours_ || new_size > capacity_) reserve(new_size); in resize()61 ours_ = true; in resize()67 if (capacity_ >= new_capacity && ours_) return; in reserve()76 if (ours_) delete[] data_; // If we owned the old buffer, free it. in reserve()79 ours_ = true; // We own the new buffer. in reserve()[all …]
186 bool ours_; // Do we own data_? variable188 Repr() : data_(nullptr), size_(0), capacity_(0), ours_(true) {} in Repr()191 if (ours_) delete[] data_; in ~Repr()