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
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
DSA
22.4k+ articles
C++
4.2k+ articles
Difference Between
3.6k+ articles
C++ Programs
2.4k+ articles
Misc
1.3k+ articles
STL
1.2k+ articles
CPP Examples
700+ articles
cpp-vector
360+ articles
cpp-map
270+ articles
CPP-Library
240+ articles
cpp-iterator
55 posts
Popular Articles
Recent Articles
How to Iterate Through a Vector in C++?
Last Updated: 15 November 2024
Iterating or traversing a vector means accessing each element of the vector sequentially. In this article, we will learn different methods t
...read more
STL
cpp-vector
C++
cpp-iterator
C++ Programs
CPP Examples
How to Traverse a Map Using Iterator in C++?
Last Updated: 04 March 2024
In C++, maps areassociative containersthat store elements where each element has a key value and a mapped value. An iterator is a pointer-li
...read more
STL
C++
cpp-iterator
C++ Programs
cpp-map
Picked
CPP Examples
How to Access Value in a Map Using Iterator in C++?
Last Updated: 29 February 2024
In C++, a map is a container that stores elements in the form of a key value and a mapped value pair. In this article, we will learn how to
...read more
STL
C++
cpp-iterator
C++ Programs
cpp-map
Picked
CPP Examples
Similar Topics
DSA
22.4k+ articles
C++
4.2k+ articles
Difference Between
3.6k+ articles
C++ Programs
2.4k+ articles
Misc
1.3k+ articles
STL
1.2k+ articles
CPP Examples
700+ articles
cpp-vector
360+ articles
cpp-map
270+ articles
CPP-Library
240+ articles
How to Use Iterator with a Vector in C++?
Last Updated: 27 February 2024
In C++, vectors are the same as dynamic arrays with the ability to resize themselves automatically when an element is inserted or deleted. A
...read more
STL
cpp-vector
C++
cpp-iterator
C++ Programs
Picked
CPP Examples
How to Access Vector Element Using Iterator in C++?
Last Updated: 06 February 2024
In C++, vectors are container that works like a dynamic array. STL provides iterators for the traversal of these containers. In this article
...read more
cpp-vector
C++
cpp-iterator
C++ Programs
Picked
CPP Examples
How to Reverse Iterate a Vector in C++?
Last Updated: 19 November 2024
In this article, we will learn different methods to iterate through the vector in reverse order in C++.The most efficient method to iterate
...read more
STL
cpp-vector
C++
cpp-iterator
C++ Programs
Picked
CPP Examples
Binary Tree Iterator for Inorder Traversal
Last Updated: 20 February 2023
Given a Binary Tree and an input array. The task is to create an Iterator that utilizes next() and hasNext() functions to perform Inorder tr
...read more
Tree
Inorder Traversal
Binary Tree
Algorithms
Tree Traversals
cpp-iterator
DSA
How to flatten a Vector of Vectors or 2D Vector in C++
Last Updated: 19 September 2022
Given a Vector of Vectors (2D vector), the task is to flatten this 2d vector. Examples:Input: vector = [[1, 2, 3, 4], [5, 6], [7, 8]] Output
...read more
Arrays
Advanced Data Structure
cpp-vector
Recursion
C++
cpp-iterator
DSA
map rend() function in C++ STL
Last Updated: 23 October 2018
The rend() function is an inbuilt function in C++ STL which returns a reverse iterator pointing to the theoretical element right before the
...read more
STL
CPP-Library
C++
cpp-containers-library
cpp-iterator
cpp-map
<iterator> library in C++ STL
Last Updated: 16 September 2021
Iterators in C++ STL | IntroductionFunctionsIterator operations :std :: advance :Advance iteratorstd :: distance : Return distance between i
...read more
Interview Experiences
STL
CPP-Library
cpp-advanced
C++
cpp-iterator
Experiences
std::istream_iterator and std::ostream_iterator in C++ STL
Last Updated: 06 January 2022
The STL is a very powerful library in C++. It is strongly built on the principles of template programming.The STL library has three main com
...read more
STL
CPP-Library
C++
cpp-iterator
std::next vs std::advance in C++
Last Updated: 08 November 2022
std::advance and std::next are used to advance the iterator by a certain position, such that we can make the iterator point to a desired pos
...read more
Misc
STL
C++
Difference Between
cpp-iterator
Output Iterators in C++
Last Updated: 25 July 2024
After going through the template definition of various STL algorithms like std::copy, std::move, std::transform, you must have found their t
...read more
STL
C++
cpp-iterator
std::back_inserter in C++
Last Updated: 27 July 2017
std::back_inserter constructs a back-insert iterator that inserts new elements at the end of the container to which it is applied. It is def
...read more
Misc
STL
C++
cpp-iterator
std::inserter in C++
Last Updated: 27 July 2017
std::inserter constructs an insert iterator that inserts new elements into x in successive locations starting at the position pointed by it.
...read more
Misc
STL
C++
cpp-iterator
First
1
2
3
4
>>
Last
First
1
2
3
4
>>
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 !