Lines Matching refs:length_

23   constexpr Vector() : start_(nullptr), length_(0) {}  in Vector()
25 Vector(T* data, size_t length) : start_(data), length_(length) { in Vector()
30 explicit constexpr Vector(T (&arr)[N]) : start_(arr), length_(N) {} in Vector()
40 DCHECK_LE(to, length_); in SubVector()
46 DCHECK(length_ <= static_cast<size_t>(std::numeric_limits<int>::max())); in length()
47 return static_cast<int>(length_); in length()
51 constexpr size_t size() const { return length_; } in size()
54 constexpr bool is_empty() const { return length_ == 0; } in is_empty()
61 DCHECK_LT(index, length_);
70 DCHECK_LT(0, length_); in last()
71 return start_[length_ - 1]; in last()
76 constexpr iterator end() const { return start_ + length_; } in end()
80 T* result = NewArray<T>(length_); in Clone()
81 for (size_t i = 0; i < length_; i++) result[i] = start_[i]; in Clone()
82 return Vector<T>(result, length_); in Clone()
114 DCHECK(length <= length_); in Truncate()
115 length_ = length; in Truncate()
123 length_ = 0; in Dispose()
127 DCHECK_LE(offset, length_);
128 return Vector<T>(start_ + offset, length_ - offset);
132 DCHECK_LE(offset, length_);
134 length_ -= offset;
151 if (length_ != other.length_) return false;
153 for (size_t i = 0; i < length_; ++i) {
163 size_t length_; variable
196 : data_(std::move(data)), length_(length) { in OwnedVector()
197 DCHECK_IMPLIES(length_ > 0, data_ != nullptr); in OwnedVector()
206 : data_(other.ReleaseData()), length_(other.size()) {} in OwnedVector()
209 constexpr size_t size() const { return length_; } in size()
212 constexpr bool is_empty() const { return length_ == 0; } in is_empty()
216 DCHECK_IMPLIES(length_ > 0, data_ != nullptr); in start()
249 size_t length_ = 0; variable