Cheat Sheets & Infographics Cheat Sheets & Infographics Cheat Sheets
Algorithms
Views
Containers
std::
Sequence Containers
std::vector<ValueType>
std::deque<ValueType>
std::list<ValueType>
std::forward_list<ValueType>
std::forward_list<T>
std::string
std::
Associative Containers
std::set<KeyType,Compare>
std::map<KeyType,MappedType,KeyCompare>
std::unordered_set<KeyType,Hash,KeyEqual>
std::unordered_map<KeyType,MappedType,Hash,KeyEqual>
std::
Special Containers
Randomness
Utilities
Language
Non-Standard Libraries
{fmt} v8.0 – Printing & Formatting
{fmt} v8.0 – Time & Date Formatting
std::format and std::strftime use the same formatting tokens
Design
C++17
- prefer specific types over general-purpose types
- don't use getter/setter pairs for classes
- use descriptive action names (
verbs
) for mutating member functions - avoid direct mutable access to class member variables from the outside
Comments…