Sunidhi Bansal has Published 1078 Articles

deque_resize( ) in C++ in STL

Sunidhi Bansal

Sunidhi Bansal

Updated on 26-Feb-2020 11:03:42

267 Views

Given is the task to show the functionality of deque resize( ) function in C++ STL.What is DequeDeque is the Double Ended Queues that are the sequence containers which provides the functionality of expansion and contraction on both the ends. A queue data structure allow user to insert data only ... Read More

list unique( ) in C++ STL

Sunidhi Bansal

Sunidhi Bansal

Updated on 26-Feb-2020 10:55:05

413 Views

Given is the task to show the functionality list unique( ) function in C++ in STL.What is List in STLList are containers that allow constant time insertion and deletion anywhere in sequence. List are implemented as doubly linked lists. List allow non-contiguous memory allocation. List perform better insertion extraction and ... Read More

list begin( ) and list end( ) in C++ STL

Sunidhi Bansal

Sunidhi Bansal

Updated on 26-Feb-2020 10:47:14

607 Views

Given is the task to show the functionality list begin( ) and list end( ) function in C++ in STL.What is List in STLList is a data structure that allows constant time insertion and deletion anywhere in sequence. Lists are implemented as doubly linked lists. Lists allow non-contiguous memory allocation. ... Read More

DEQUE CBEGIN() in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 30-Jan-2020 10:03:30

194 Views

Given the task is to show the working of deque::cbegin() in C++ STL.What is Deque::cbegin( ) function?deque::cbegin() is a function which comes under deque header file, cbegin() returns the iterator pointer which points to the first element of the deque container.Note − cbegin() function does not have any arguments in ... Read More

iswcntrl() function in C++ STL

Sunidhi Bansal

Sunidhi Bansal

Updated on 30-Jan-2020 09:59:01

169 Views

The iswcntrl () function in C++ standard template library(STL) is used to check if the given wide character is a control character or not. A control character is a character in C/C++ that won’t occupy a printing position on a display screen. Iswcntrl() function is defined in a cwctype header ... Read More

Iswctype() function in C++ STL

Sunidhi Bansal

Sunidhi Bansal

Updated on 30-Jan-2020 09:50:37

111 Views

In C++ standard template libraray(STL), iswctype() function is used to check if the given wide character has property specified by desc.Iswctype() is an in built function whose header file is “ctype.h”.Syntax of Iswctype() is as followsint iswctype(wint_t c, wctype_t desc); iswctype () / Checks whether whether c has the property ... Read More

iswdigit() function in C++ STL

Sunidhi Bansal

Sunidhi Bansal

Updated on 30-Jan-2020 09:44:13

164 Views

In C++ STL, iswdigit() function is a built-in function that is used to check if the given wide character is a decimal digit character or some other character. This function is present in a cwctype header file in C/C++.What are the decimal digit characters?Decimal digit character are the numeric values ... Read More

DEQUE CRBEGIN() in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 30-Jan-2020 07:42:23

212 Views

Given the task is to show the working of deque::crbegin() in C++.Deque is a double ended queue that gives insertion and deletion at each end i.e. front and back with high performance, in contrast to vector that gives high performance insertion at the end i.e. back only.Also, it provides random ... Read More

Find elements of an array which are divisible by N using STL in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Jan-2020 10:26:44

279 Views

Given with an array and the task is to find the number which are divisible by N using standard template library in C++.To solve this problem we are using the function count_if() present in C++ standard template library.What is a count_if() function?Syntaxcount_if(LowerBound, UpperBound, function)Description − This function returns the number ... Read More

Find elements of an Array which are Odd and Even using STL in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Jan-2020 10:18:07

341 Views

Given with an array and the task is to find the number of odd and even elements in an array using standard template library in C++.To solve this problem we are using the function count_if() present in C++ standard template library. What is a count_if() function?Syntaxcount_if(LowerBound, UpperBound, function)Description − This ... Read More

Advertisements