From 7e6d58da93a2a81d07166e10378bf818d2cda3a4 Mon Sep 17 00:00:00 2001 From: hsutter Date: Tue, 26 Dec 2017 12:06:53 -0800 Subject: [PATCH] Actually adding `index` to the GSL.util section --- CppCoreGuidelines.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 50bd194..35f8aa4 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -19898,12 +19898,13 @@ for example, `Expects(p != nullptr)` will become `[[expects: p != nullptr]]`. ## GSL.util: Utilities -* `finally` // `finally(f)` makes a `final_action{f}` with a destructor that invokes `f` -* `narrow_cast` // `narrow_cast(x)` is `static_cast(x)` -* `narrow` // `narrow(x)` is `static_cast(x)` if `static_cast(x) == x` or it throws `narrowing_error` -* `[[implicit]]` // "Marker" to put on single-argument constructors to explicitly make them non-explicit. -* `move_owner` // `p = move_owner(q)` means `p = q` but ??? +* `finally` // `finally(f)` makes a `final_action{f}` with a destructor that invokes `f` +* `narrow_cast` // `narrow_cast(x)` is `static_cast(x)` +* `narrow` // `narrow(x)` is `static_cast(x)` if `static_cast(x) == x` or it throws `narrowing_error` +* `[[implicit]]` // "Marker" to put on single-argument constructors to explicitly make them non-explicit. +* `move_owner` // `p = move_owner(q)` means `p = q` but ??? * `joining_thread` // a RAII style version of `std::thread` that joins. +* `index` // a type to use for all container and array indexing (currently an alias for `ptrdiff_t`) ## GSL.concept: Concepts