reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
67 assert(N <= capacity()); 141 size_t capacity_in_bytes() const { return capacity() * sizeof(T); } 212 if (LLVM_UNLIKELY(this->size() >= this->capacity())) 219 if (LLVM_UNLIKELY(this->size() >= this->capacity())) 238 size_t NewCapacity = size_t(NextPowerOf2(this->capacity() + 2)); 303 if (LLVM_UNLIKELY(this->size() >= this->capacity())) 349 if (this->capacity() < N) 362 if (this->capacity() < N) 370 if (this->capacity() < N) 389 if (NumInputs > this->capacity() - this->size()) 398 if (NumInputs > this->capacity() - this->size()) 414 if (this->capacity() < NumElts) 476 if (this->size() >= this->capacity()) { 506 if (this->size() >= this->capacity()) { 642 if (LLVM_UNLIKELY(this->size() >= this->capacity())) 678 if (RHS.size() > this->capacity()) 680 if (this->size() > RHS.capacity()) 734 if (this->capacity() < RHSSize) { 794 if (this->capacity() < RHSSize) {lib/Support/SmallVector.cpp
48 size_t NewCapacity = 2 * capacity() + 1; // Always grow.
lib/Support/Unix/Path.inc306 if (::getcwd(result.data(), result.capacity()) == nullptr) { 311 result.reserve(result.capacity() * 2);tools/clang/lib/Lex/PPMacroExpansion.cpp
1031 MacroExpandedTokens.capacity()-MacroExpandedTokens.size();
tools/lldb/source/Utility/VASprintf.cpp 28 buf.resize(buf.capacity());
unittests/ADT/SmallVectorTest.cpp241 bool RequiresGrowth = this->theVector.capacity() < 3; 726 EXPECT_LE(4u, this->theVector.capacity());