Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
C++
/
RAII
A function uses vector for all temporary memory but appends to its caller’s vector before…
from RAII
C++23 (GCC 13.3.0)
intermediate
1 min
A function uses vector for all temporary memory but appends to its caller’s vector before a later operation throws. What does RAII establish?
Temporary resources are cleaned up, but the caller-visible append means the strong guarantee is not automatic.
The caller’s vector is automatically rolled back.
No operation inside an RAII-using function can throw.
The function necessarily provides the no-throw guarantee.
Check
Ask AI about this kata
Report an error
previous kata
What does this program print?
Predict the output
next kata
Repair a generated file owner
Review AI code
A new version is available
Reload