C++
What does ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
What does the
for_each
algorithm return?
Iterator to the end of the container
Iterator to the start of the container
Its own function object
Nothing
Explanation
The
for_each
algorithm has a unique feature - it returns its function object. Other algorithms cannot do this. This means that you can get information about the state of the function object by checking the return value of the
for_each
algorithm.
algorithm
for_each
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
C
++
Quiz
Login to learn C++
or
Read more about
C++ Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment