Lines Matching defs:capacity
29 // Initial capacity of thread local buffer, unless otherwise specified.
49 // Reserves |capacity| number of elements of capacity in the underlying
51 static void Reserve(std::size_t capacity) {
53 InitializeBuffer(capacity);
54 buffer_->reserve(capacity);
64 // Gets a reference to the underlying buffer after reserving |capacity|
67 static BufferType& GetBuffer(std::size_t capacity = Capacity) {
69 Reserve(capacity);
102 static void InitializeBuffer(std::size_t capacity) {
104 GetBufferGuard().reset(buffer_ = new BufferType(capacity));