C++ Techniques / Idioms 1. Resource acquisition is initialization (RAII) Definition Binds the life cycle of a resource that must be acquired before use (allocated heap memory, thread of execution, open socket, open file, locked mutex, disk space, database connection—anything that exists in limited supply) to the lifetime of an […]

C++ Techniques / Idioms