Hello World
Write, compile and run a first C++ program in the GRC tutorial Dev Container: picking a compiler such as GCC or Clang, headers, main, output and return codes.
Building C++ Code Manually
Compile C++ by hand with g++: build a shared library and executables, pass -I and -L flags, fix runtime loading with LD_LIBRARY_PATH, and enable optimization.
Building C++ with CMake
Build a C++ repository with CMake: the standard repo layout and a top-level CMakeLists.txt with compiler flags, options, output paths, dependencies and tests.
C++ Basic Syntax
C and C++ basics for HPC code: builtin and fixed-size numeric types, simple arrays, structs, memory allocation with malloc and free, pointers, and RAII.
C++ Style and Documentation
The GRC C++ style guide, based on Google C++ style: naming for functions, classes, variables, namespaces, enums and macros, cpplint, and Doxygen comments.
C++ Classes
Object-oriented C++: define classes, control access with struct, class and friend, write constructors and destructors, and use inheritance and overloading.
C++ Templates
C++ templates for everyday use: function, class and member templates, multiple and non-type parameters, variadic templates, and where template code lives.
C++ References and Pointers
C++ references and pointers: lvalues and rvalues, copy and move constructors, raw pointers, unique_ptr, shared_ptr and weak_ptr, and dangling pointers.
C++ Data Structures
Capabilities and performance of common C++ containers: std::vector, list, map, set, unordered_map, unordered_set, queue and priority_queue, and how to pick.
Singleton
The singleton pattern in C++ for shared state such as a configuration manager: a simple regular singleton, a robust C-style singleton, and when to use each one.
Factory Design Pattern
The factory design pattern in C++, shown with I/O schedulers: a common base class, derived scheduling policies, and a factory that picks one at runtime.
Mixins
C++ mixins combine the functionality of several classes into one while avoiding multiple-inheritance name clashes, shown with printable and serializable mixins.
Unit Testing in C++
Why unit testing matters and how to test C++ code: register tests in CMake and run them with CTest, then write and link test executables with Google Test.
Intro to MPI
Intro to MPI for parallel C++ programs: link MPI in CMake, then use ranks, communicators, barriers and reductions to coordinate distributed processes.