Home | History | Annotate | Download | only in src

Lines Matching refs:Container

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