Searched refs:ours_ (Results 1 – 2 of 2) sorted by relevance
33 if (ours_ && data_) delete[] data_; in operator =()37 ours_ = src.ours_; in operator =()38 src.ours_ = false; in operator =()43 if (ours_ && data_) delete[] data_; // If we owned the old buffer, free it. in PointTo()47 ours_ = false; in PointTo()59 if (!ours_ || new_size > capacity_) reserve(new_size); in resize()63 ours_ = true; in resize()69 if (capacity_ >= new_capacity && ours_) return; in reserve()78 if (ours_) delete[] data_; // If we owned the old buffer, free it. in reserve()81 ours_ = true; // We own the new buffer. in reserve()[all …]
203 bool ours_; // Do we own data_? variable205 Repr() : data_(nullptr), size_(0), capacity_(0), ours_(true) {} in Repr()208 if (ours_) delete[] data_; in ~Repr()