Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
You need to execute an algorithm on a range and none of the standard algorithms meets your requirements.
Write your algorithm as a function template and advertise your iterator requirements with the names of your template parameters. See Example 7-10 for a variation on the copy standard algorithm.