c exception handling method, setjmp( ) and longjmp( ) is a kind of non-local goto functions…
Month: January 2021
How std forward( ) converts to r-value in c++?
Just like, std::move( ), std::forward( ) also casts its argument (to R-value), however, unlike move( )…
Typecasting in C++: static, dynamic and others
static_cast is first type of typecasting in c++: This is used to perform all conversions that…
Why virtual functions not called in constructor & destructor ?
During base class construction, virtual functions never go into derived classes and the object behaves as…
Preprocessor directive & const types – differences?
Preprocessor directive or #define is the traditional C-style way of specifying constant items. This is also…
Virtual Destructor & Pure Virtual Destructor c++
Pure virtual destructor C++: is declared just like a pure virtual function, i.e. having =0 in…
Smart Pointer: understanding unique_ptr
C++ smart pointers: std::unique_ptr does everything which std::auto_ptr does, plus it also takes care of exclusive…
std move () : How this template function works?
The std::move( ) is a function template which perform static casts. The std::move( ) unconditionally casts…
Shared Pointer: Understanding shared_ptr
The shared ownership is tracked using a reference count property, which manages the count of shared…