Skip to content

Tag Archives: cpp-advanced

Prerequisite: Vector in C++ Vectors are the same as dynamic arrays with the ability to resize themselves automatically when an element is inserted or deleted,… Read More
Lambda expressions were introduced in C++11. They are basically snippets of code that can be nested inside other functions and even function call statements. By… Read More
Many times, user wants that an instance of a C++ class should not be copied at all. So, the question is how do we achieve… Read More
A literal is used for representing a fixed value in a program. A literal could be anything in a code like a, b, c2. ,… Read More
Placement new is a variation new operator in C++. Normal new operator does two things : (1) Allocates memory (2) Constructs an object in allocated… Read More
Boost Libraries are intended to be widely useful, and usable across a broad spectrum of applications. For example, they are helpful for handling large numbers… Read More
Before going into deep let us first have a look on the normal ‘overloaded assignment operator’ that we use. // Simple C++ program to demonstrate… Read More
C++ 11 introduced lambda expressions to allow inline functions which can be used for short snippets of code that are not going to be reused… Read More
Foreach loop is used to iterate over the elements of a container (array, vectors, etc) quickly without performing initialization, testing, and increment/decrement. The working of… Read More