Template:cpp/header/dsc algorithm