Same workaround for std::count_if as for std::count.

This commit is contained in:
Marc Glisse 2007-08-20 13:06:27 +00:00
parent 2dbf6e8a03
commit f05f30e457
1 changed files with 9 additions and 0 deletions

View File

@ -108,6 +108,15 @@ namespace std {
return result;
}
template <class InputIterator, class Predicate>
inline typename iterator_traits<InputIterator>::difference_type
count_if (InputIterator first, InputIterator last, Predicate pred)
{
typename iterator_traits<InputIterator>::difference_type result;
count_if(first,last,pred,result);
return result;
}
template < class T >
inline typename T::value_type*
__value_type (const T&)