From c1f947f4fb5932facd544e4968bab6749c3ff6e5 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 29 Apr 2014 06:54:46 -0700 Subject: [PATCH] Add comments. --- format.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/format.h b/format.h index cfa3fd27..0a858202 100644 --- a/format.h +++ b/format.h @@ -126,10 +126,13 @@ class BasicFormatter; struct FormatSpec; namespace internal { - + +// The number of characters to store in the Array object, representing the +// output buffer, itself to avoid dynamic memory allocation. enum { INLINE_BUFFER_SIZE = 500 }; #if _SECURE_SCL +// Use checked iterator to avoid warnings on MSVC. template inline stdext::checked_array_iterator CheckPtr(T *ptr, std::size_t size) { return stdext::checked_array_iterator(ptr, size); @@ -203,6 +206,7 @@ class Array { size_ = new_size; } + // Reserves space to store at least capacity elements. void reserve(std::size_t capacity) { if (capacity > capacity_) Grow(capacity);