May 01, 2016
#include <cstdio>
// TODO array of struct* manually allocatedmanual memory allocation
C standard library functions
lack of structure
#include <vector>
// TODO vector of RAII*RAII
STL
Object-Oriented
Resource Acquisition Is Initialization
hide resource acquisition in class constructor
memory allocation
network connections
file loading
mutex locking
throw exception on error
no naked new/delete
// TODO RAII class
// TODO RAII class usage// TODO vector, map, and object {} init
// TODO class member init// TODO shared, unique, nullptr, make_shared, new allocationrvalue vs lvalue
std::move
std::forward
Rule of 5
Generic Programming
// TODO template class
// TODO template function// TODO template class
// TODO template function// TODO auto assignmentconstexpr
static_assert
// TODO constexpr
// TODO static_assert