Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Sign In
▲
Similar Topics
C++
4.2k+ articles
STL
1.2k+ articles
CPP-Functions
600+ articles
cpp-vector
360+ articles
cpp-map
270+ articles
CPP-Library
240+ articles
cpp-set
190+ articles
cpp-deque
86 articles
cpp-multiset
66 articles
CPP-forward-list
33 articles
cpp-containers-library
92 posts
Popular Articles
Recent Articles
push_back() vs emplace_back() in C++ STL Vectors
Last Updated: 03 June 2022
In C++, vectors are dynamic arrays, that can grow or shrink and their storage is handled by the container itself. There are two ways of inse
...read more
STL
cpp-vector
C++
Difference Between
cpp-containers-library
unordered_map erase in C++ STL
Last Updated: 24 October 2024
in C++, std::unordered_map::erase() is a built-in function used remove elements from the unordered_map container. It is a member function of
...read more
Technical Scripter
STL
C++
cpp-containers-library
cpp-unordered_map
Picked
cpp-unordered_map-functions
Technical Scripter 2018
unordered_map insert in C++ STL
Last Updated: 29 October 2024
The std::unordered_map::insert() in C++ STL is a built-in function used to insert a key-value pair in unordered_map container. As unordered
...read more
STL
CPP-Functions
C++
cpp-containers-library
cpp-unordered_map
Picked
cpp-unordered_map-functions
Similar Topics
C++
4.2k+ articles
STL
1.2k+ articles
CPP-Functions
600+ articles
cpp-vector
360+ articles
cpp-map
270+ articles
CPP-Library
240+ articles
cpp-set
190+ articles
cpp-deque
86+ articles
cpp-multiset
66+ articles
CPP-forward-list
33+ articles
vector rbegin() and rend() Functions in C++ STL
Last Updated: 24 October 2024
In C++, std::vector::rbegin() and std::vector::rend() are built-in functions used to retrieve reverse iterators to the reverse beginning and
...read more
STL
CPP-Functions
cpp-vector
C++
cpp-containers-library
map::lower_bound() in C++ STL
Last Updated: 04 November 2024
In C++,std::map::lower_bound()is a built-in method used to find the first element in the map whose key is either equal to or greater than th
...read more
STL
CPP-Functions
C++
cpp-containers-library
cpp-map
cpp-map-functions
Set upper_bound() in C++ STL
Last Updated: 19 November 2024
In C++, theset upper_bound()is a built-in method used to find the first element in the set that is just greater than the given value. In thi
...read more
STL
CPP-Functions
C++
cpp-containers-library
cpp-set
vector emplace() in C++ STL
Last Updated: 16 January 2025
In C++, vector emplace() is used to insert elements at the given position in a vector by constructing it in-place within the vector, rather
...read more
STL
CPP-Functions
cpp-vector
C++
cpp-containers-library
Vector emplace_back in C++ STL
Last Updated: 26 November 2024
In C++, the vector emplace_back() is a built-in method used to insert an element at the end of the vector by constructing it in-place. It me
...read more
STL
cpp-vector
C++
cpp-containers-library
map clear() in C++ STL
Last Updated: 19 November 2024
The map clear() function in C++ is used to remove all elements from the map container and make its size to 0. In this article, we will learn
...read more
STL
C++
cpp-containers-library
cpp-map
Algorithm Library Functions in C++ STL
Last Updated: 21 August 2023
Non-modifying sequence operationsstd :: all_of : Test condition on all elements in rangestd :: any_of : Test if any element in range fulfill
...read more
Interview Experiences
STL
cpp-advanced
C++
cpp-algorithm-library
cpp-containers-library
Experiences
priority_queue::push() and priority_queue::pop() in C++ STL
Last Updated: 24 October 2024
In C++,priority_queue::push()andpriority_queue::pop()methods are used to insert and delete the element from the priority_queue container. T
...read more
STL
CPP-Library
C++
cpp-containers-library
cpp-queue
cpp-priority-queue
queue::front() and queue::back() in C++ STL
Last Updated: 23 June 2022
Queue are a type of container adaptors which operate in a first in first out (FIFO) type of arrangement. Elements are inserted at the back (
...read more
STL
CPP-Library
C++
cpp-containers-library
cpp-queue
queue::empty() and queue::size() in C++ STL
Last Updated: 04 June 2023
Queue is a type of container adaptor that operate in a first in first out (FIFO) type of arrangement. Elements are inserted at the back (end
...read more
STL
CPP-Library
C++
cpp-containers-library
How to insert elements in C++ STL List ?
Last Updated: 13 September 2023
List has been discussed in many articles, but the sole purpose of this article is to cover all types of insertions that are possible to be c
...read more
STL
CPP-Library
C++
cpp-containers-library
cpp-list
fill() and fill_n() functions in C++ STL
Last Updated: 23 August 2022
A vector, once declared, has all its values initialized to zero. Following is an example code to demonstrate the same.[tabby title="CPP"][so
...read more
STL
CPP-Library
cpp-vector
C Language
C++
cpp-containers-library
First
1
2
3
4
5
6
7
>>
Last
First
1
2
3
4
5
6
>>
Last
First
1
2
3
4
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !