Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Articles by Sunidhi Bansal
Page 46 of 81
match_results empty() in C++ STL
In this article we will be discussing the working, syntax and examples of match_results::empty() function in C++ STL.What is a match_results in C++ STL?std::match_results is a specialized container-like class which is used to hold the collection of character sequences which are matched. In this container class a regex match operation finds the matches of the target sequence.What is match_results::empty()?match_results::empty() function is an inbuilt function in C++ STL, which is defined in header file. empty() checks whether the smatch object which is associated is empty or having some match values in it. empty() returns true if the match object is ...
Read Morematch_results length() in C++ STL
In this article we will be discussing the working, syntax and examples of match_results::length() function in C++ STL.What is a match_results in C++ STL?std::match_results is a specialized container-like class which is used to hold the collection of character sequences which are matched. In this container class a regex match operation finds the matches of the target sequence.What is match_results::length()?match_results::length() function is an inbuilt function in C++ STL, which is defined in header file. length() is used to check the length of the n-th match in the match_results object associated with it. length() accepts a parameter which is the match ...
Read Morematch_results operator= in C++
In this article we will be discussing the working, syntax and examples of match_results operator ‘=’ in C++ STL.What is a match_results in C++ STL?std::match_results is a specialized container-like class which is used to hold the collection of character sequences which are matched. In this container class a regex match operation finds the matches of the target sequence.What is match_results operator ‘=’Match_results operator = is an equality operator which is used to assign the value to a match_results. Operator = is used to copy or move the elements from one match_results object to another.Syntaxmatch_results1 = (match_results2);ParametersAnother match_results object whose data ...
Read Morematch_results operator[] in C++ STL
In this article we will be discussing the working, syntax and examples of match_results operator ‘[ ]’ in C++ STL.What is a match_results in C++ STL?std::match_results is a specialized container-like class which is used to hold the collection of character sequences which are matched. In this container class a regex match operation finds the matches of the target sequence.What is match_results operator ‘[ ]’Match_results operator [] is a reference operator which is used to directly refer to i-th position of a match_results. Operator [] returns i-th match position of the object associated. This operator comes in handy when we have ...
Read Morematch_results prefix() and suffix() in C++
In this article we will be discussing the working, syntax and examples of match_results::prefix() and match_results::suffix() functions in C++ STL.What is a match_results in C++ STL?std::match_results is a specialized container-like class which is used to hold the collection of character sequences which are matched. In this container class a regex match operation finds the matches of the target sequence.What is match_results:: prefix()?match_results::prefix() function is an inbuilt function in C++ STL, which is defined in header file. prefix() is used to get the preceding match_results of the object associated with the function. This function returns the reference of the succeeding ...
Read Morematch_results size() in C++ STL
In this article we will be discussing the working, syntax and examples of match_results::size() function in C++ STL.What is a match_results in C++ STL?std::match_results is a specialized container-like class which is used to hold the collection of character sequences which are matched. In this container class a regex match operation finds the matches of the target sequence.What is match_results::size()?match_results::size() function is an inbuilt function in C++ STL, which is defined in header file. size() is used to get the number of matches of the match_results object associated with it. This function returns a size_type value that is the number ...
Read MoreError functions using cmath in C++
We are given the variable and the task is to find the probability of the variable using an error function available in C++ STL. This function is available in the cmath header file in C++.What is an Error function?Error function in mathematics is also known as Gauss error function which is denoted by erf(). It is a special function that is used in probability, statistic and partial differential equations for the calculation of error that can occur. It is defined as −There are two closely related error function −complementary error function − It is defined as erfc x = 1 ...
Read Moreis_class template in C++
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 Moreis_const Template in C++
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 Moreexp2() function in C++ STL
In this article we will be discussing the working, syntax and examples of std::exp2() function for complex numbers in C++ STL.What is std::exp2()?std::exp2() function for complex numbers is an inbuilt function in C++ STL, which is defined in or header file. exp2() function is used for computing the binary exponential function that is the base-2 exponential function of a given number.This function returns either double, float or long double value which is .Syntaxexp2(double n); exp2(float n); exp2(long double n);ParametersThe function accepts the following parameter(s) −n − It is a value of the exponent.Return valueThis function returns the base-2 ...
Read More