ulimit -nA recurring construct to fix a commonly occurring coding problem
Resource Acquisition Is Initialization
A wrapper type that makes pointers safer
nullptrbool for validity checking| Smart Pointer | Status |
|---|---|
std::unique_ptr |
Added C++11 |
std::shared_ptr |
Added C++11 |
std::auto_ptr |
Deprecated in C++11, Removed in C++17 |
| Use Case | Solution |
|---|---|
| Optional types | std::optional |
| Lazy Initialization | About to find out |
| Existing libraries that use pointers | About to find out |
Delaying the construction of an object until (or if) it is needed
sizeof(Data), store a large amount of datastd::unique_ptrdefault_delete<>goto and other constructs in the codeclose()