Skip to content

Tag Archives: cpp-advanced

The std::string has some demerits, one of the most common situations is constant strings. Below is the program that demonstrates the problem that occurs in… Read More
The find_by_order() is a built-in function of Ordered Set which is a Policy Based Data Structure in C++. Policy-based data structures are not part of… Read More
C++ 17 introduced many new ways to declare a variable. Earlier assignment and declaration was done using “=” Example: int a = 5; But now… Read More
any is one of the newest features of C++17 that provides a type-safe container to store single value of any type. In layman’s terms, it… Read More
A Cast operator is a unary operator which forces one data type to be converted into another data type. C++ supports 4 types of casting:… Read More
A Vector Quantity is a Quantity which possesses both magnitude as well as direction. Here, magnitude is simply the amount or size of the quantity… Read More
Create a function that prints multidimensional array size by dimensions i.e.:Examples:   Input : int a[2][3][4]; printDimensions(a); Output : 2x3x4 Input : int b[5][6]; printDimensions(a); Output… Read More
Defaulted Function What is a Defaulted Function? Explicitly defaulted function declaration is a new form of function declaration that is introduced into the C++11 standard which… Read More
Prerequisite : Tuples in C++ Structured binding is one of the newest features of C++17 that binds the specified names to subobjects or elements of… Read More
reinterpret_cast is a type of casting operator used in C++.   It is used to convert a pointer of some data type into a pointer of… Read More
In many cases, we need to check the value of something returned by a function and perform conditional operations based on this value. So our… Read More
Iterators in C++ STL | Introduction Functions Iterator operations :  std :: advance : Advance iterator std :: distance : Return distance between iterators std ::… Read More
Non-modifying sequence operations  std :: all_of  : Test condition on all elements in range std :: any_of  : Test if any element in range fulfills… Read More

Start Your Coding Journey Now!