Modules (since C++20)
Modules help divide large amounts of code into logical parts.
Modules are orthogonal to namespaces.
// helloworld.cpp export module helloworld; // module declaration import <iostream>; // import declaration export void hello() { // export declaration std::cout << "Hello world!\n"; }
// main.cpp import helloworld; // import declaration int main() { hello(); }
[edit] Syntax
export(optional) module module-name module-partition(optional) attr(optional) ;
|
(1) | ||||||||
export declaration
|
(2) | ||||||||
export { declaration-seq(optional) }
|
(3) | ||||||||
export(optional) import module-name attr(optional) ;
|
(4) | ||||||||
export(optional) import module-partition attr(optional) ;
|
(5) | ||||||||
export(optional) import header-name attr(optional) ;
|
(6) | ||||||||
module ;
|
(7) | ||||||||
module : private ;
|
(8) | ||||||||
| This section is incomplete |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
