If you think RAII is about smart pointers, you really don't understand it.
RAII is about resource management, regardless of where those resources live on.
Heap allocated, OS handles, indexes on a fixed sized buffer, network sockets, ...
RAII is about resource management, regardless of where those resources live on.
Heap allocated, OS handles, indexes on a fixed sized buffer, network sockets, ...
It's like the "I know React but not JavaScript" crowd all over again.