18#ifndef BABAR_COMP_INST
22#if defined(__SUNPRO_CC)
28 template <
class InputIterator,
class T>
30 count (InputIterator first, InputIterator last,
const T& value)
34 if (*first++ == value) ++
n;
38 template <
class InputIterator,
class Predicate>
40 count_if (InputIterator first, InputIterator last, Predicate pred)
44 if (pred(*first++)) ++
n;
48 template <
class InputIterator>
50 distance (InputIterator first, InputIterator last)