
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 7197 Articles for C++

265 Views
In this article we will be discussing the working, syntax and examples of multiset::clear() function in C++ STL.What is a multiset in C++ STL?Multisets are the containers similar to the set container, meaning they store the values in the form of keys the same like a set, in a specific order.In multiset the values are identified as keys as same like sets. The main difference between multiset and set is that the set has distinct keys, meaning no two keys are the same, in multiset there can be the same keys value.Multiset keys are used to implement binary search trees.What ... Read More

2K+ Views
In this article we will be discussing the working, syntax and examples of multiset::begin() and multiset::end() functions in C++ STL.What is a multiset in C++ STL?Multisets are the containers similar to the set container, meaning they store the values in the form of keys same like a set, in a specific order.In multiset the values are identified as keys as same as sets. The main difference between multiset and set is that the set has distinct keys, meaning no two keys are the same, in multiset there can be the same keys value.Multiset keys are used to implement binary search ... Read More

277 Views
In this article we will be discussing the working, syntax and examples of std::is_arithmetic template in C++ STL.is_arithmetic template helps to check whether the given class T is of arithmetic type or not.What is an Arithmetic Type?Arithmetic type consists of two types, that areintegral types − In this we define the whole numbers. The following are the type of integral types −charboolintlongshortlong longwchar_tchar16_tchar32_tfloating point types − These can hold fractional parts. The following are the type of floating point.FloatDoubleLong doubleSo, template is_arithmatic checks the defined type T is an arithmetic type or not and returns true or false accordingly.Syntaxtemplate ... Read More

354 Views
In this article we will be discussing the working, syntax and examples of std::is_abstract template in C++ STL.Is_abstract template helps to check whether the class is an abstract class or not.What is an abstract class?Abstract class is a class which has at least one Pure Virtual Function. We use Abstract classes because when we define the function, we don’t know its implementation, so it is very helpful in the case when we don't know what the function of a class is supposed to do further but we are sure that there must be a function like this in our system. ... Read More

305 Views
In this article we will be discussing the working, syntax and examples of std::is_empty template in C++ STL.is_empty is a template which comes under the header file. This template is used to check whether the given class T is an empty class or not.What is an empty class?A class is known as empty, when there is no data stored in a class. Empty class satisfies the following −Must have no non-static members other than bit fields of length 0.Must have no virtual base class or virtual functions.Must have no base class.Syntaxtemplate is_empty;ParametersThe template can have only parameter of class ... Read More

250 Views
In this article we will be discussing the working, syntax and examples of std::is_rvalue_reference template in C++ STL. is_rvalue_reference template in C++ is used to check whether the defined type is a rvalue reference or not.What is an rvalue?Rvalues are the values which are on the right side of an assignment operator. Rvalues are the valueWhat is rvalue reference?Rvalue reference is identified by double ampersand symbol (&&). This is used to initialise it with only the rvalue value.Syntaxint&& a;Syntaxtemplate is_rvalue_reference;ParametersThe template can have only parameter of type T, and check whether the given type is a rvalue reference or ... Read More

220 Views
In this article we will be discussing the working, syntax and examples of std::is_lvalue_reference template in C++ STL.is_lvalue_reference template in C++ is used to check whether the defined type is an lvalue reference or not.What is an lvalue?Lvalues are the values which are on the left side of an assignment operator. Lvalues are the expressions which refer to the memory location.What is Lvalue reference?Lvalue reference is a reference which binds to a lvalue. This is very similar to how we used to refer to a variable in traditional C++ or C language, i.e. by using ampersand symbol (&) with the ... Read More

119 Views
In this article we will be discussing the working, syntax and examples of iswgraph() function in C++ STL.iswgraph() is a function which comes under the header file. This function is used to check whether the given wide character has any graphical representation or not. The function is the wide character version of the function isgraph which comes under header file.Which wide characters have graphical representation?All the wide characters which can be printed on screen are the those which are having a graphical representation. Except the escape characters are those which are having the graphical representation.Syntaxint iswgraph(ch);ParametersThe function accepts ... Read More

266 Views
In this article we will be discussing the working, syntax and examples of std::is_const template in C++ STL.is_const template in C++ is used to check whether the defined type is a const-qualified type or not.What is const-qualified type?We say a type as a const-qualified when the value of the type is constant. Constant data type is a type in which once a value is initialised in a const can’t be changed or altered throughout the program.Syntaxtemplate is_const;ParametersThe template can have only parameter of type T, and check whether the given type is a constqualifier or notReturn valueIt returns a ... Read More

168 Views
In this article we will be discussing the working, syntax and examples of std::is_class template in C++ STL.is_class template is used to check whether the defined type is class type not any other type.What is a class?A class is an user defined data type or a data structure which contains some data members or member functions which is declared with the keyword ‘class’.Exampleclass abc { int data_members; void member_function(); };So, is_class template checks that the type T is a class, and returns the Boolean value true or false accordingly.Syntaxtemplate is_class;ParametersThe template can have only parameter of type ... Read More