Home | History | Annotate | Download | only in src

Lines Matching refs:Container

268 // STL container utilities.
270 // Returns the number of elements in the given container that satisfy
272 template <class Container, typename Predicate>
273 inline int CountIf(const Container& c, Predicate predicate) {
277 for (typename Container::const_iterator it = c.begin(); it != c.end(); ++it) {
284 // Applies a function/functor to each element in the container.
285 template <class Container, typename Functor>
286 void ForEach(const Container& c, Functor functor) {