Tag: Generic
Erase elements from a Set while Iterating in C++ & Generic erase_if()
In this article we will discuss how to erase elements from a set while iterating over it. Erasing elements from std::set while Iterating std::set provides a member function erase() that accepts an iterator as an argument and deletes it from the set i.e. iterator erase (const_iterator position); But it makes the passed iterator invalid. From …
Erase elements from a Set while Iterating in C++ & Generic erase_if()Read More
Generic Lambdas in C++14
In this article, we will discuss about Generic Lambdas in C++14. Table of Contents Introduction to Generic Lambdas in C++14 Why Generic Lambda were introduced in C++14? Summary Introduction to Generic Lambdas in C++14 Lambdas were introduced in C++11. A Lambdas is also known as an Anonymous Function, because it does not have any name. …