Content deleted Content added
m →Typical uses: formulate the first sentence better. |
Link free store Tags: Mobile edit Mobile web edit Advanced mobile edit |
||
Line 30:
| last=Chou
| date=2014-10-01
| access-date=2019-03-09}}</ref> This latter term is for the special case of [[automatic variable]]s. RAII ties resources to object ''lifetime,'' which may not coincide with entry and exit of a scope. (Notably variables allocated on the [[Heap (programming)|free store]] have lifetimes unrelated to any given scope.) However, using RAII for automatic variables (SBRM) is the most common use case.
==C++11 example==
|