12 int num[] = {1, 2, 3, 4, 5};
13 std::cout <<
"the average value of the integer values is " <<
Accum<int>::accum(&num[0], &num[5]) / 5 <<
'\n';
14 char name[] =
"templates";
15 int length =
sizeof(name) - 1;
16 std::cout <<
"the average value of the characters in \"" << name <<
"\" is "
static AT::type accum(T const *beg, T const *end)