Using RAII greatly simplifies resource management, reduces overall code size and helps ensure program correctness. RAII is therefore highly recommended in C++[according to whom?], and most of the C++ standard library follows the idiom.[11]