Top Qs
Timeline
Chat
Perspective
RAII
From Wiktionary, the free dictionary
Remove ads
English
Etymology
Coined by Bjarne Stroustrup.
Noun
RAII (uncountable)
- (programming) Initialism of Resource Acquisition Is Initialization, a popular design pattern in object-oriented programming that ties resources to the lifespan of associated objects to prevent resource leakage.
- 2019, Fedor G. Pikus, Hands-On Design Patterns with C++, page 469:
- With RAII, the closing action cannot be skipped or bypassed, even if the function exits the scope prematurely with an early return or by throwing an exception.
Synonyms
References
Resource acquisition is initialization on Wikipedia.Wikipedia
Anagrams
Remove ads
Wikiwand - on
Seamless Wikipedia browsing. On steroids.
Remove ads