From 474d0d3e6b46338577b1530cfca49aa8e0517e55 Mon Sep 17 00:00:00 2001 From: Herb Sutter Date: Tue, 29 Sep 2015 09:01:29 -0700 Subject: [PATCH] Elaborated on some of the FAQs --- CppCoreGuidelines.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index a820ca8..faa9000 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -11417,17 +11417,17 @@ Because `string_view` is still undergoing standardization, and is in a state for ### FAQ.56: Is `owner` the same as the proposed `observer_ptr`? -No. `owner` owns, is an alias, and can be applied to any indirection type. +No. `owner` owns, is an alias, and can be applied to any indirection type. The main intent of `observer_ptr` is to signify a *non*-owning pointer. ### FAQ.57: Is `stack_array` the same as the standard `array`? -No. `stack_array` is guaranteed to be allocated on the stack. +No. `stack_array` is guaranteed to be allocated on the stack. Although a `std::array` contains its storage directly inside itself, the `array` object can be put anywhere, including the heap. ### FAQ.58: Is `dyn_array` the same as `vector`? -No. `dyn_array` is not resizable, and is a safe way to refer to a heap-allocated fixed-size array. +No. `dyn_array` is not resizable, and is a safe way to refer to a heap-allocated fixed-size array. It is intended to replace array-`new[]`. ### FAQ.59. Is `Expects` the same as `assert`?