mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
more language feature xrefs
This commit is contained in:
parent
e144bd4f9b
commit
6fa4cb32cd
|
@ -60,25 +60,79 @@ Supporting sections:
|
||||||
* [Glossary](#S-glossary)
|
* [Glossary](#S-glossary)
|
||||||
* [To-do: Unclassified proto-rules](#S-unclassified)
|
* [To-do: Unclassified proto-rules](#S-unclassified)
|
||||||
|
|
||||||
You can look at a specific language feature:
|
You can sample rules for a specific language feature:
|
||||||
|
|
||||||
* assignment: [???](#S-???)
|
* assignment:
|
||||||
* `class`: [???](#S-class)
|
[and regular types](#Rc-regular) --
|
||||||
* constructor: [???](#SS-ctor)
|
[prefer initialization](#Rc-initialize) --
|
||||||
* derived `class`: [???](#SS-hier)
|
[copy semantics](#Rc-copy-semantics) --
|
||||||
* destructor: [and constructors](#Rc-matched), [when needed?](#Rc-dtor), [may not fail](#Rc-dtor-fail)
|
[move semantics](#Rc-move-semantics) --
|
||||||
* exception: [???](#S-errors)
|
[and other operations](Rc-matched) --
|
||||||
* `for`: [range-for and for](#Res-for-range) -- [for and while](#Res-for-while) -- [for-initializer](#Res-for-init) -- [empty body](#Res-empty) -- [loop variable](#Res-loop-counter) -- [loop variable type ???](#Res-???)
|
[default](#Rc-eqdefault)
|
||||||
* `inline`: [???](#S-class)
|
* `class`:
|
||||||
* initialization: [???](#S-???)
|
[data](#Rc-org) --
|
||||||
* lambda expression: [???](#SS-lambdas)
|
[invariant](#Rc-struct) --
|
||||||
* operator: [???](#S-???)
|
[members](#Rc-member) --
|
||||||
* `public`, `private`, and `protected`: [???]](#S-???)
|
[helper functions](#Rc-helper) --
|
||||||
* `static_assert`: [???](#S-???)
|
[concrete types](#SS-concrete) --
|
||||||
* `struct`: [for organizing data](#Rc-org), [use if no invariant](#Rc-struct), [no private members](#Rc-class)
|
[constructors, assignments, and destructors](#S-ctor) --
|
||||||
* `template`: [???](#S-???)
|
[hierarchies](#SS-hier) --
|
||||||
* `unsigned`: [???](#S-???)
|
[operators](#SS-overload) --
|
||||||
* `virtual`: [???](#SS-hier)
|
* constructor:
|
||||||
|
[invariant](#Rc-struct) --
|
||||||
|
[establish invariant](#Rc-ctor) --
|
||||||
|
[`throw` in constructor](#Rc-throw) --
|
||||||
|
[default](#Rc-default0) --
|
||||||
|
[not needed](#Rc-default) --
|
||||||
|
[`explicit`](#Rc-explicit) --
|
||||||
|
[delegating](#Rc-delegating) --
|
||||||
|
[and `virtual`](#RC-ctor-virtual)
|
||||||
|
* derived `class`:
|
||||||
|
[when to use](#Rh-domain) --
|
||||||
|
[as interface](#Rh-abstract) --
|
||||||
|
[and destructors](#Rh-dtor) --
|
||||||
|
[copy](#Rh-copy) --
|
||||||
|
[getters and setters](#Rh-get) --
|
||||||
|
[`protected`](#Rh-protected) --
|
||||||
|
[multiple inheritance](#Rh-mi-interface) --
|
||||||
|
[overloading member functions](#Rh-using) --
|
||||||
|
[slicing](#Rc-copy-virtual) --
|
||||||
|
[`dynamic_cast`](#Rh-dynamic_cast)
|
||||||
|
* destructor:
|
||||||
|
[and constructors](#Rc-matched) --
|
||||||
|
[when needed?](#Rc-dtor) --
|
||||||
|
[may not fail](#Rc-dtor-fail)
|
||||||
|
* exception:
|
||||||
|
[???](#S-errors)
|
||||||
|
* `for`:
|
||||||
|
[range-for and for](#Res-for-range) --
|
||||||
|
[for and while](#Res-for-while) --
|
||||||
|
[for-initializer](#Res-for-init) --
|
||||||
|
[empty body](#Res-empty) --
|
||||||
|
[loop variable](#Res-loop-counter) --
|
||||||
|
[loop variable type ???](#Res-???)
|
||||||
|
* `inline`:
|
||||||
|
[???](#S-class)
|
||||||
|
* initialization:
|
||||||
|
[???](#S-???)
|
||||||
|
* lambda expression:
|
||||||
|
[???](#SS-lambdas)
|
||||||
|
* operator:
|
||||||
|
[???](#S-???)
|
||||||
|
* `public`, `private`, and `protected`:
|
||||||
|
[???]](#S-???)
|
||||||
|
* `static_assert`:
|
||||||
|
[???](#S-???)
|
||||||
|
* `struct`:
|
||||||
|
[for organizing data](#Rc-org) --
|
||||||
|
[use if no invariant](#Rc-struct) --
|
||||||
|
[no private members](#Rc-class)
|
||||||
|
* `template`:
|
||||||
|
[???](#S-???)
|
||||||
|
* `unsigned`:
|
||||||
|
[???](#S-???)
|
||||||
|
* `virtual`:
|
||||||
|
[???](#SS-hier)
|
||||||
|
|
||||||
You can look at design concepts used to express the rules:
|
You can look at design concepts used to express the rules:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user