Lines Matching refs:Container
687 // STL container utilities.
689 // Returns the number of elements in the given container that satisfy
691 template <class Container, typename Predicate>
692 inline int CountIf(const Container& c, Predicate predicate) {
696 for (typename Container::const_iterator it = c.begin(); it != c.end(); ++it) {
703 // Applies a function/functor to each element in the container.
704 template <class Container, typename Functor>
705 void ForEach(const Container& c, Functor functor) {