Skip to content

Tag Archives: CPP-Library

Iterators in C++ STL | Introduction Functions Iterator operations :  std :: advance : Advance iterator std :: distance : Return distance between iterators std ::… Read More
copysign(x, y) function returns the value with a magnitude of x and the sign of y. Examples: Input : copysign(6, -2) Output : -6 Input… Read More
std::reference_wrapper is a class template that wraps a reference in a copy constructible and copy assignable object or reference to function of type T. Instances… Read More
We can find out the time taken by different parts of a program by using the std::chrono library introduced in C++ 11. We have discussed… Read More
The maximum and minimum size of integral values are quite useful or in simple terms limits of any integral type plays quite a role in… Read More
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
Deque or Double-ended queues are sequence containers with the feature of expansion and contraction on both ends. They are similar to vectors, but are more… Read More
The STL is a very powerful library in C++. It is strongly built on the principles of template programming. The STL library has three main components… Read More
Given two floating-point numbers, find the remainder. Examples:  Input: a = 36.5, b = 5.0 Output: 1.5 Input: a = 9.7, b = 2.3 Output: 0.5  Recommended… Read More
This function is similar to strtok in C. Input sequence is split into tokens, separated by separators. Separators are given by means of the predicate.Syntax: … Read More
The snprintf() function is defined in the <stdio.h> header file and is used to store the specified string till a specified length in the specified… Read More
Array classes are generally more efficient, light-weight, and reliable than C-style arrays. The introduction of array class from C++11 has offered a better alternative for… Read More
Vectors are same as dynamic arrays with the ability to resize itself automatically when an element is inserted or deleted, with their storage being handled… Read More
Vectors are the same as dynamic arrays with the ability to resize themselves automatically when an element is inserted or deleted, with their storage being… Read More
Vectors are same as dynamic arrays with the ability to resize itself automatically when an element is inserted or deleted, with their storage being handled… Read More

Start Your Coding Journey Now!