Searched refs:capacity_ (Results 1 – 4 of 4) sorted by relevance
74 size_t capacity() const { return capacity_; } in capacity()130 capacity_ = 0; in Init()137 size_t capacity_; variable149 Vector() : items_(0), count_(0), capacity_(0) {} in Vector()193 size_t capacity_; variable207 if (count_ >= capacity_) in InsertAt()208 Reserve(capacity_ + (capacity_ >> 1) + 4); in InsertAt()238 capacity_ = new_capacity; in Reserve()239 if (count_ > capacity_) in Reserve()240 count_ = capacity_; in Reserve()[all …]
72 if (new_size > capacity_) { in Resize()73 size_t new_capacity = capacity_; in Resize()93 capacity_ = new_capacity; in Reserve()
102 capacity_ = 0; in Clear()106 if (new_size > capacity_) { in Resize()107 size_t new_capacity = capacity_; in Resize()119 if (new_capacity > capacity_) in Reserve()120 ::memset(str_ + capacity_, '\0', new_capacity - capacity_); in Reserve()121 capacity_ = new_capacity; in Reserve()
121 String() : str_(NULL), size_(0), capacity_(0) {}190 size_t capacity_;