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.3k+ articles
Difference Between
4.2k+ articles
C++
4k+ articles
C++ Programs
2.5k+ articles
Misc
2.1k+ 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
Iterate over characters of a string in C++
Last Updated: 24 November 2020
Given a string str of length N, the task is to traverse the string and print all the characters of the given string.Examples:Input: str = "G
...read more
Strings
cpp-string
C++
cpp-iterator
DSA
Const vs Regular iterators in C++ with examples
Last Updated: 18 August 2020
Prerequisite: Iterators in STLIterators are objects similar to pointers which are used to iterate over a sequence and manipulate the contain
...read more
C++
C++-const keyword
Difference Between
cpp-iterator
C++ Programs
Different types of range-based for loop iterators in C++
Last Updated: 16 September 2021
Range-Based 'for' loops have been included in the language since C++11. It automatically iterates (loops) over the iterable (container). Thi
...read more
cpp-references
C++
Loops & Control Structure
cpp-iterator
Similar Topics
DSA
22.3k+ articles
Difference Between
4.2k+ articles
C++
4k+ articles
C++ Programs
2.5k+ articles
Misc
2.1k+ articles
STL
1.2k+ articles
CPP Examples
700+ articles
cpp-vector
360+ articles
cpp-map
270+ articles
CPP-Library
240+ articles
Array of Vectors in C++ STL
Last Updated: 14 February 2020
Prerequisite: Arrays in C++, Vector in C++ STLAn array is a collection of items stored at contiguous memory locations. It is to store multip
...read more
Algorithms
Technical Scripter
STL
cpp-vector
C++
Arrays
cpp-iterator
Technical Scripter 2019
DSA
Difference between Iterators and Pointers in C++ with Examples
Last Updated: 09 January 2024
In C++ programming, we have both pointers and iterators that are used in managing and manipulating data structures. There are many similarit
...read more
cpp-pointer
C++
Pointers
Difference Between
cpp-iterator
std::prev in C++
Last Updated: 22 July 2022
std::prev returns an iterator pointing to the element after being advanced by certain number of positions in the reverse direction. It is de
...read more
Misc
STL
C++
cpp-iterator
std::next in C++
Last Updated: 02 August 2017
std::next returns an iterator pointing to the element after being advanced by certain no. of positions. It is defined inside the header file
...read more
Misc
STL
C++
cpp-iterator
Introduction to Iterators in C++
Last Updated: 10 March 2025
An iterator is an object like a pointer that points to an element inside the container. We can use iterators to move through the contents of
...read more
STL
C++
cpp-iterator
Bidirectional Iterators in C++
Last Updated: 08 April 2024
After going through the template definition of various STL algorithms like std::reverse, std::next_permutation and std::reverse_copy you mus
...read more
Misc
STL
C++
cpp-iterator
Forward Iterators in C++
Last Updated: 25 April 2019
After going through the template definition of various STL algorithms like std::search, std::search_n, std::lower_bound, you must have found
...read more
Misc
STL
C++
cpp-iterator
Random Access Iterators in C++
Last Updated: 07 January 2022
After going through the template definition of various STL algorithms like std::nth_element, std::sort, you must have found their template d
...read more
Misc
STL
C++
cpp-iterator
Input Iterators in C++
Last Updated: 25 July 2024
After going through the template definition of various STL algorithms like std::find, std::equal, std::count, you must have found their temp
...read more
STL
C++
cpp-iterator
std::distance in C++
Last Updated: 28 October 2024
The std::distance() in C++ STL is a built-in function used to calculate the number of elements between two iterators. It is defined inside i
...read more
STL
CPP-Functions
C++
cpp-algorithm-library
cpp-iterator
std::advance in C++
Last Updated: 26 April 2022
std::advance advances the iterator 'it' by n element positions. Syntax :template void advance (InputIterator it, Distance n);it : Iterat
...read more
STL
C++
cpp-iterator
Iterators in C++ STL
Last Updated: 24 October 2024
Aniterator in C++is a pointer-like object that points to an element of the STL container. They are generally used to loop through the conten
...read more
STL
CPP-Library
C++
cpp-iterator
1
2
3
4
>>
Last
1
2
3
4
>>
Last
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 !