std::move
1. Transfers ownership of an object to another location, leaving the original empty. It prevents expensive or impossible copies by moving the underlying data instead. |
std::make_unique
You get back a std::unique_ptr<ClassName> that automatically deletes the object when it goes out of scope. <ClassName> — the type you want to allocate <arg1, arg2, ...> — the arguments forwarded to its constructor (can be zero or more) std::thread
std::atomic
Wraps any type T and guarantees that reading and writing to it from multiple threads is always safe.std::atomic<T> wraps any type T and guarantees that reading and writing to it from multiple threads is always safe. Without it, two threads touching the same variable simultaneously is undefined behaviour in C++. It essentially puts a protection around the variable so every read and write is always a clean, complete operation. |
std:exception
std::exception is the base class for all standard C++ exceptions, caught using a const reference. Give me one sentence on the method what |
Cheatography
https://cheatography.com
C++ Std Library Cheat Sheet (DRAFT) by blakecromar
A cheet sheet on the C++ std library
This is a draft cheat sheet. It is a work in progress and is not finished yet.