This is a quick reference library with working examples for important C++ features/topics tagged with C++ versions for instant/O(1) access (no need for google/AI search). Each file is carefully "compiled" with descriptions / examples / key notes / warnings.
How it looks like:
concepts-cpp20.cpp
const-method-and-mutable.cpp
consteval-cpp20.cpp
constexpr-cpp11.cpp
constinit-cpp20.cpp
ctors.cpp
decltype-auto-cpp14.cpp
designated-init-cpp20.cpp
enum.cpp
erase-erase_if-cpp20.cpp
explicit.cpp
format-cpp20.cpp
generic-lambda-cpp14.cpp
init-statement-if-switch-cpp17.cpp
init-statement-range-for-cpp20.cpp
init-uniform-cpp11.cpp
inline-static-cpp17.cpp
jthread-cpp20.cpp
lambda-capture-this-cpp20.cpp
lambda-extended-capture-cpp14.cpp
lambdas-templated-cpp20.cpp
map-cpp11.cpp
memory-order-cpp11.cpp
move-cpp11.cpp
namespaces-nested-cpp17.cpp
op-spaceship-cpp20.cpp
optional-cpp17.cpp
random_file.h
ranges-cpp20.cpp
semaphore-cpp20.cpp
shared-timed-mutex-cpp14.cpp
smart-ptrs-shared-cpp11.cpp
smart-ptrs-unique-cpp11.cpp
smart-ptrs-weak-cpp11.cpp
span-cpp20.cpp
string-view-cpp17.cpp
string.cpp
structured-bindings-cpp17.cpp
switch.cpp
temp.cpp
temp_template.cpp
thread_local_cpp11.cpp
types.cpp
using-enum-cpp20.cpp
utils.h
variadic-templates-cpp11.cpp
variant-any-cpp17.cpp
vector.cpp
virtual.cpp
...
and more in -> src/
Related, also see:
https://github.com/gsimsekfb/language-cheatsheet/blob/master/lang_table.png