summaryrefslogtreecommitdiff
path: root/absl/container
diff options
context:
space:
mode:
authorGravatar Lawrence Wolf-Sonkin <lawrencews@google.com>2022-12-22 09:49:55 -0800
committerGravatar Copybara-Service <copybara-worker@google.com>2022-12-22 09:50:38 -0800
commite1444d8f5f3d9147445155dde9a93f0070407afe (patch)
treede7059a60c1ff8b6f8b76a67e7f398af530ef090 /absl/container
parent8e6582b877d950cd5c6d05bc891bfc99c6ea2803 (diff)
Update `FixedArray` doc comments to match actual template param names
* The template parameter provided to `FixedArray` for the number of inline elements is named `N` * If left defaulted, which is recommended, `FixedArray` chooses the number of inline elements by itself * The `inline_elements` static class member contains the actual number of inlinable elements * Previously the docs referred to the template parameter as `inline_elements` instead of `N`. PiperOrigin-RevId: 497185546 Change-Id: I321092826d956704c0074062d2a7b924b28e36d0
Diffstat (limited to 'absl/container')
-rw-r--r--absl/container/fixed_array.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/absl/container/fixed_array.h b/absl/container/fixed_array.h
index 55432430..b67379cf 100644
--- a/absl/container/fixed_array.h
+++ b/absl/container/fixed_array.h
@@ -62,11 +62,10 @@ constexpr static auto kFixedArrayUseDefault = static_cast<size_t>(-1);
// A `FixedArray` provides a run-time fixed-size array, allocating a small array
// inline for efficiency.
//
-// Most users should not specify an `inline_elements` argument and let
-// `FixedArray` automatically determine the number of elements
-// to store inline based on `sizeof(T)`. If `inline_elements` is specified, the
-// `FixedArray` implementation will use inline storage for arrays with a
-// length <= `inline_elements`.
+// Most users should not specify the `N` template parameter and let `FixedArray`
+// automatically determine the number of elements to store inline based on
+// `sizeof(T)`. If `N` is specified, the `FixedArray` implementation will use
+// inline storage for arrays with a length <= `N`.
//
// Note that a `FixedArray` constructed with a `size_type` argument will
// default-initialize its values by leaving trivially constructible types