Skip to content

Tag Archives: CPP-Library

round is used to round off the given digit which can be in float or double. It returns the nearest integral value to provided parameter… Read More
std::stoul Convert string to unsigned integer. Parses str interpreting its content as an integral number of the specified base, which is returned as an unsigned… Read More
is_trivial function is used to check whether the given type T is a trivial class or not. It is a template is declared in <type_traits>… Read More
Valarray generalized slice selector class represents a valarray generalized slice selector (a multidimensional slice). It does not contain nor refer to any element – it… Read More
The substring function is used for handling string operations like strcat(), append(), etc. It generates a new string with its value initialized to a copy… Read More
The useful input/output manipulators are std::setbase, std::setw and std::setfill. These are defined in and are quite useful functions.   std::base : Set basefield flag; Sets the… Read More
strxfrm() is a C/C++ Library function. It is used to transform the characters of the source string into the current locale and place them in… Read More
seekg() is a function in the iostream library that allows you to seek an arbitrary position in a file. It is included in the <fstream>… Read More
strcoll() is a built-in library function and is declared in <string.h> header file. This function compares the string pointed to by str1 with the one… Read More
It compares the first count characters of the arrays pointed to by buf1 and buf2. Syntax: int memcmp(const void *buf1, const void *buf2, size_t count);… Read More
C++ offers various standard template libraries to be used. One of them is memchr() function which will search for the first occurrence of a character… Read More
In C++, strchr() is a predefined function used for finding the occurrence of a character in a string. It is present in cstring header file.… Read More
In C++, iscntrl() is a predefined function used for string and character handling. cstring is the header file required for string functions and cctype is… Read More
In C++, isprint() is a predefined function used for string and character handling. cstring is the header file required for string functions and cctype is… Read More
C++ strrchr() function finds the location of the last occurrence of the specified character in the given string and returns the pointer to it. It… Read More

Start Your Coding Journey Now!