Added First Batch Of Recipes Added First Batch Of Recipes Added First Batch Of Recipes
Follow @hackingcpp on twitter so you don't miss any updates.
Curated, concise solutions for specific tasks.
Fast (Uninitialized) Allocation of Numeric Arrays
How to allocate (large) uninitialized numeric arrays / vectors without costly zero-initialization.
Which Function Parameter For Strings?
Explains which function parameter type should be used for receiving strings depending on use case and ISO C++ standard version.
Making A Random Number Generator
How to make a single random generator object from a standard library random distribution and a random engine.
Recover From Input Stream Errors
How to recover from standard input stream reading errors,
e.g. when reading user input from std::cin
.