Parametrized constructor: understanding the concept

Parametrized constructor is a user-defined constructor which takes some parameter as argument and constructs. If a…

Which member functions are generated by compiler in class?

These member functions are generated only if needed, i.e., if a copy operation is needed then…

What is c++ template meta programming (TMP)

using recursive template instantiations. To terminate the recursion, a c++ template specialization is needed as shown…

Calling member functions in base template class

When the base is template class, then compiler cannot simply call base class members in derived…

What are dependent scope type in templates?

Dependent type are types that depends on the template parameter. These dependent types are access via…

What is an implicit interface in templates?

In world of templates, the concept of interfaces is discussed in implicit terms, like, what all…

Diamond problem in inheritance – Overheads

Diamond problem in inheritance is a consequence of multiple inheritance which leads to duplication of data.…

Multiple inheritance & virtual base classes

In multiple inheritance, one way to solve this ambiguity problem is to use virtual base classes,…

new and delete: Understanding array version

To allocate objects in array, program need to use an overloaded form of new & delete.…

Overloading new and delete in global scope

Overloading new and delete, The overloaded new must take an argument of size_t (i.e., number of…

Overload new & delete operator in a class

overload new & delete: We can control the creation & destruction of objects and arrays of…

Use C-stype exception handling – setjmp( ) & longjmp( )

c exception handling method, setjmp( ) and longjmp( ) is a kind of non-local goto functions…