Tags » RAII

RAII, JNI, and Android NDK

If you have been doing multi-threaded C++ code, you’ll know that RAII (Resource Acquisition is Initialisation) idiom is very valuable to ease the burden of manually typing resource initialisation and release. 414 more words


Smart Pointers

Smart Pointers

In modern C++ programming, the Standard Library includes smart pointers, which are used to help ensure that programs are free of memory and resource leaks and are exception-safe. 530 more words