Template:cpp/algorithm/scan example