150k views
4 votes
What is resource acquisition initialization?

User Quotidian
by
7.8k points

1 Answer

2 votes

Answer:

Resource Acquisition Initialization or RAII is a C++ programming technique that 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)

Step-by-step explanation:

User Leguman
by
7.2k points