more language feature xrefs

These xrefs are menat part as teasers to get language-feature obsessed
programmers to look at the guidelines and partly to cover topics that
appears in several places. They are not meant to be complete
This commit is contained in:
Bjarne Stroustrup 2017-04-17 21:01:51 -04:00
parent 6fa4cb32cd
commit 54f57d8d1b

View File

@ -103,7 +103,12 @@ You can sample rules for a specific language feature:
[when needed?](#Rc-dtor) -- [when needed?](#Rc-dtor) --
[may not fail](#Rc-dtor-fail) [may not fail](#Rc-dtor-fail)
* exception: * exception:
[???](#S-errors) [errors](#S-errors) --
[`throw`](Re-throw) --
[for errors only](#Re-errors) --
[`noexcept`](#Re-noexcept) --
[mimize `try`](#Re-catch) --
[what if no exceptions?](#Re-no-throw-codes)
* `for`: * `for`:
[range-for and for](#Res-for-range) -- [range-for and for](#Res-for-range) --
[for and while](#Res-for-while) -- [for and while](#Res-for-while) --
@ -111,10 +116,25 @@ You can sample rules for a specific language feature:
[empty body](#Res-empty) -- [empty body](#Res-empty) --
[loop variable](#Res-loop-counter) -- [loop variable](#Res-loop-counter) --
[loop variable type ???](#Res-???) [loop variable type ???](#Res-???)
* function:
[naming](#Rf-package) --
[single operation](#Rf-logical) --
[may not throw](#Rf-noexcept) --
[arguments](#Rf-smart) --
[argument passing](#Rf-conventional) --
[multiple return values](#Rf-out-multi)
[pointers](#Rf-return-ptr) --
[lambdas](#Rf-capture-vs-overload)
* `inline`: * `inline`:
[???](#S-class) [small functions](#Rf-inline) --
[in headers](Rs-inline)
* initialization: * initialization:
[???](#S-???) [always](#Res-always) --
[prefer `{}`](#Res-list) --
[lambdas](#Res-lambda-init) --
[in-class initializers](#Rc-in-class-initializer) --
[class members](#Rc-initialize) --
[factory functions](#Rc-factory)
* lambda expression: * lambda expression:
[???](#SS-lambdas) [???](#SS-lambdas)
* operator: * operator: