From 2528acd0173d4da05023798484a2d77a74ea85c9 Mon Sep 17 00:00:00 2001 From: Herb Sutter Date: Tue, 29 Sep 2015 08:55:09 -0700 Subject: [PATCH] Added GSL type-specific FAQs --- CppCoreGuidelines.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 5942fed..a820ca8 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -11415,6 +11415,34 @@ 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. + + +### FAQ.57: Is `stack_array` the same as the standard `array`? + +No. `stack_array` is guaranteed to be allocated on the stack. + + +### 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. + + +### FAQ.59. Is `Expects` the same as `assert`? + +No. It is a placeholder for language support for contracts. + + +### FAQ.60. Is `Expects` the same as `assert`? + +No. It is a placeholder for language support for contracts. + + + + + # Appendix A: Libraries This section lists recommended libraries, and explicitly recommends a few.