- Exercise
Let's solve the exercise on tag dispatching in this lesson.
We'll cover the following
Problem Statement
Extend the example template for Tag Dispatching given below. The following program shows a typical example of tag dispatching on iterators. Call the advance_
algorithm in the main
function with different containers such as std:.vector
, std::list
, and ::forward_list
to put the iterator 5 positions further.
Get hands-on with 1400+ tech skills courses.