Skip to content

Category Archives: C++

C++ allows defining static data members within a class using the static keyword. When a data member is declared as static, then we must keep… Read More
C++ provides a list of standard exceptions defined in header <exception> in namespace std where “exception” is the base class for all standard exceptions. All… Read More
Prerequisite: Friend Class in C++A friend class can access private and protected members of other classes in which it is declared as a friend. It… Read More
Pre-requisite: Vectors in C++Slicing a vector means to make a subvector from a given vector. Given N integers in a vector arr and to positive numbers… Read More
Prerequisite: Pointer in C and C++, Double Pointer (Pointer to Pointer) in CA pointer is used to point to a memory location of a variable.… Read More
The std::unary_negate() is a wrapper function object returning the complement of the unary predicate it holds. A wrapper function is a subroutine in a software… Read More
std::string::crbegin() The std::string::crbegin() is a string class built-in function that returns a constant reverse iterator referring to the last element in the string. Using this… Read More
We all are familiar with an alias in C++. An alias means another name for some entity. So, a reference variable is an alias that… Read More
The std::is_nothrow_constructible template of C++ STL is present in the <type_traits> header file. The std::is_nothrow_constructible template of C++ STL is used to check whether the… Read More
The std::add_const template of C++ STL is present in the <type_traits> header file. The std::add_const template of C++ STL is used to get the type… Read More
The std::is_nothrow_assignable template of C++ STL is present in the <type_traits> header file. The std::is_nothrow_assignable template of C++ STL is used to check whether A… Read More
The std::is_literal_type template of C++ STL is present in the <type_traits> header file. The std::is_literal_type template of C++ STL is used to check whether the… Read More
The std::is_copy_constructible template of C++ STL is present in the <type_traits> header file. The std::is_copy_constructible template of C++ STL is used to check whether the… Read More
The std::add_lvalue_reference template of C++ STL is present in the <type_traits> header file. The std::add_lvalue_reference template of C++ STL is used to get lvalue reference… Read More
The std::is_nothrow_default_constructible template of C++ STL is present in the <type_traits> header file. The std::is_nothrow_default_constructible template of C++ STL is used to check whether the… Read More

Start Your Coding Journey Now!