Migrate to mkdocs
This commit is contained in:
@@ -888,14 +888,14 @@ template <typename T> class buffer {
|
||||
/// Clears this buffer.
|
||||
void clear() { size_ = 0; }
|
||||
|
||||
// Tries resizing the buffer to contain *count* elements. If T is a POD type
|
||||
// Tries resizing the buffer to contain `count` elements. If T is a POD type
|
||||
// the new elements may not be initialized.
|
||||
FMT_CONSTEXPR void try_resize(size_t count) {
|
||||
try_reserve(count);
|
||||
size_ = count <= capacity_ ? count : capacity_;
|
||||
}
|
||||
|
||||
// Tries increasing the buffer capacity to *new_capacity*. It can increase the
|
||||
// Tries increasing the buffer capacity to `new_capacity`. It can increase the
|
||||
// capacity by a smaller amount than requested but guarantees there is space
|
||||
// for at least one additional element either by increasing the capacity or by
|
||||
// flushing the buffer if it is full.
|
||||
|
||||
Reference in New Issue
Block a user