Skip to content

Commit b7d8028

Browse files
authored
Progress from March US Small Group session
Would like to get cross-references in advance section to other modules which are coupled to headers, such as classes, templates, modules, etc.
1 parent 370dedd commit b7d8028

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

sources/modules/compilation-model/headers.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Level Objective
1313
----------------- ------------------------------------------------------
1414
Foundational Including code through standard library headers
1515

16-
Main Organize function and class declarations into reusable
17-
files for inclusion into others
16+
Main Write headers to support separate compilation and code
17+
organization
1818

1919
Advanced --- (inlining? templates? hygiene, such as using namespace?)
2020

@@ -55,7 +55,7 @@ _Max 5 items._
5555

5656
A student should be able to:
5757

58-
1. Include common standard library headers to get access to commonly used declarations
58+
1. Include common standard library headers to get access to standard library features
5959

6060
#### Caveats
6161

@@ -69,9 +69,12 @@ _This section lists important details for each point._
6969
* Usage of standard library code requires inclusion of various header files
7070
* Give examples of various header files and when they may be needed for inclusion
7171
* Include links to reference materials for finding out what headers are used for various feature sets
72+
* When using standard library facilities, can either use `using std::vector; vector<int> v;`, or `std::vector<int> v;`, or `using namespace std; vector<int> v;`, though modern practice strongly discourages invoking `using namespace std;`
7273

7374
### Main: Organizing function and class declarations for reuse
7475

76+
_Description: Write headers to support separate compilation and code organization_
77+
7578
#### Background/Required Knowledge
7679

7780
* All of the above
@@ -107,6 +110,7 @@ A student should be able to:
107110
_These are important topics that are not expected to be covered but provide
108111
guidance where one can continue to investigate this topic in more depth._
109112

113+
Header-only libraries?
110114
Templates in headers?
111115
Classes in headers?
112116
Macros in headers?

0 commit comments

Comments
 (0)