Migrate to mkdocs

This commit is contained in:
Victor Zverovich
2024-06-02 08:26:56 -07:00
parent 0714113974
commit 38ba3d3993
8 changed files with 18 additions and 22 deletions

View File

@@ -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.