Skip to content

Tag Archives: CPP-Functions

The basic_stream::seekg() method is used to set position of the next character to be extracted from the input stream. This function is present in the… Read More
Standard C++ contains several built-in exception classes, functional::bad_function_call is one of them. This is an exception thrown on bad call. Below is the syntax for… Read More
The basic_istream::get() is used to get the character. This function returns a one character if available, otherwise it will return end of the file. Header… Read More
Standard C++ contains several built-in exception classes. typeinfo::bad_cast is one of them. This is an exception thrown on failure to dynamic cast. Below is the… Read More
The basic_istream::putback() used to put the character back in the input string. This function is present in the iostream header file. Below is the syntax… Read More
The exception::what() used to get string identifying exception. This function returns a null terminated character sequence that may be used to identify the exception. Below… Read More
The basic_istream::operator>> is known as the extraction operator. This operator is used to apply on the input string. Header File: <iostream> Syntax: basic_istream& operator>>( int&… Read More
The std::has_virtual_destructor of C++ STL is used to check whether the given type T has a vitual destructor or not. It returns the boolean value… Read More
Standard C++ contains several built-in exception classes, typeinfo::bad_typeid is one of them. This is an exception thrown on typeid of null pointer. Below is the… Read More
The std::is_assignable template of C++ STL is present in the <type_traits> header file. The std::is_assignable template of C++ STL is used to check whether a… Read More
It is used to find the member constant value equal to the alignment requirement of the type T. If T is a reference type than… Read More
Standard C++ contains several built-in exception classes, std::bad_weak_ptr is one of them. std::bad_weak_ptr is the type of the object thrown as exceptions by the constructors… Read More
The std::basic_istream::ignore is used to extracts characters from the input string and discards them including delimiting character, i.e., if the end of the file is… Read More
The std::basic_istream::getline is used to extract the characters from stream until end of line or the extracted character is the delimiting character. The delimiting character… Read More
The std::is_heap() function in C++ Standard Template Library is used to check whether a given range of elements forms Max Heap or not. It returns… Read More