Resource Acquisition Is Initialization

Resource Acquisition Is Initialization (often referred to by the acronym RAII) is a technique in object oriented programming. The technique states that, like the name implies, objects should initialise and release all resources they acquire. It is of paramount importance especially in languages that do not support built-in garbage collection, such as C++. A stereotypical example of RAII is the Standard Template Library's file-stream class. An input file stream is opened in the object's constructor, and it is closed upon destruction of the object. Since C++ allows objects to be allocated on the stack, C++'s scoping mechanism can be used to control file access.

External links

 

<< PreviousWord BrowserNext >>
bobby rahal
airspeed horsa
buddy rice
george herbig
50 pence
globalization and its discontents
the land conservancy
batter's box
skolem noether theorem
insomniac games
muhammad baqir al sadr
george frederick bodley
personal life index
alicia machado
alcaeus
david c. jewitt
alcaeus (mythology)
raphael m. robinson
antonio caldara
kirkjubjarklaustur
chrononauts
virgil (disambiguation)
kingdom of navarre
rapid action force
sklholt
holsworthy
20th century concert dance
the fourth world (album)
wolf trap national park for the performing arts
continuing education
mantes la ville
world resources institute
james gustave (gus) speth
gerald cock
sue wicks
temik
abhimanyu
louise m. davies symphony hall
shisa
hungarian oak
norman language
laurel oak
twilo
choreographic technique