Lines Matching refs:size
61 template <size_t size>
62 explicit constexpr ArrayRef(T (&array)[size]) in ArrayRef() argument
63 : array_(array), size_(size) { in ArrayRef()
67 size_t size,
69 explicit constexpr ArrayRef(U (&array)[size]) in ArrayRef() argument
70 : array_(array), size_(size) { in ArrayRef()
81 : array_(v.data()), size_(v.size()) { in ArrayRef()
90 : array_(v.data()), size_(v.size()) { in ArrayRef()
112 src.size() * sizeof(T) / sizeof(U)); in Cast()
133 size_type size() const { return size_; } in size() function
134 bool empty() const { return size() == 0u; } in empty()
172 return SubArray(pos, size() - pos); in SubArray()
176 return SubArray(pos, size() - pos); in SubArray()
180 DCHECK_LE(pos, size()); in SubArray()
181 DCHECK_LE(length, size() - pos); in SubArray()
186 DCHECK_LE(pos, size()); in SubArray()
187 DCHECK_LE(length, size() - pos); in SubArray()
198 return lhs.size() == rhs.size() && std::equal(lhs.begin(), lhs.end(), rhs.begin());