C++ Language Reference

C++ reference. Pointers, classes, STL containers, templates, RAII, smart pointers, and build systems.

Topics

Topic Description

Basics

Variables, types, strings, control flow, I/O

Pointers & References

Raw pointers, references, null, pointer arithmetic

Classes

Access control, inheritance, Rule of Five, operator overloading

STL Containers

vector, map, set, array, string, algorithms

Templates

Function/class templates, specialization, concepts, variadic

Memory & RAII

unique_ptr, shared_ptr, move semantics, stack vs heap

Compilation

g/clang, Makefile, CMake, header files, sanitizers

I/O

File streams, string streams, error handling, argv

Debugging

GDB, Valgrind, assertions, core dumps