Content deleted Content added
formatting |
Added reference for who recommends RAII |
||
Line 75:
| accessdate=2019-03-09}}</ref>
Using RAII greatly simplifies resource management, reduces overall code size and helps ensure program correctness. RAII is therefore
| url=https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines
| title=C++ Core Guidelines
| date=2020-08-03
| last1=Stroustrup
| first1=Bjarne
| author-link1=Bjarne Stroustrup
| last2=Sutter
| first2=Herb
| author-link2=Herb Sutter
| accessdate=2020-08-15}}</ref>
and most of the C++ standard library follows the idiom.<ref>{{cite web
| url=https://isocpp.org/wiki/faq/exceptions#too-many-trycatch-blocks
| title=I have too many try blocks; what can I do about it?
|