-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Q&A sessions on common C++ idioms with examples
Welcome to the C++ training repository. Each week a new exercise will be posted which attempts to explain an idiom or concept frequently used in our code. Exercises will require you to write some code and then answer questions on the result of running it.
The code should be executable on any platform with a standards-compliant C++ compiler (g++ 4.4 or greater, MSVC10 or greater, clang). Cmake should be used to generate the appropriate build files. (See the README for instructions)
###Past and Future Trainings:
-
Passing and returning by reference, pointer, and value.
-
constobjects,constmember functions, andauto. -
Function objects: functions, functors, lambdas and bind (three part)
-
STL Algorithms: Use them to write descriptive and maintainable code
-
Resource Acquisition Is Initialization (RAII): Correct and concise code when allocating memory, locking mutexes, and more.
-
Smart pointers:
std::shared_ptrandstd::unique_ptr -
Dependency minimization: Separate compilation, forward declarations and unnamed namespaces
-
A Taste of Template Metaprogramming:
enable_ifand the curiously recurring template pattern