Lines Matching refs:Container
277 // STL container utilities.
279 // Returns the number of elements in the given container that satisfy
281 template <class Container, typename Predicate>
282 inline int CountIf(const Container& c, Predicate predicate) {
286 for (typename Container::const_iterator it = c.begin(); it != c.end(); ++it) {
293 // Applies a function/functor to each element in the container.
294 template <class Container, typename Functor>
295 void ForEach(const Container& c, Functor functor) {