LRDE Tiger Compiler  1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
algorithm.hh
Go to the documentation of this file.
1 
6 #ifndef MISC_ALGORITHM_HH
7 # define MISC_ALGORITHM_HH
8 
9 # include <iosfwd>
10 
11 namespace misc
12 {
13 
15  template <typename Container>
16  void
17  deep_clear(Container& c);
18 
20  template <typename Container>
21  inline typename Container::const_iterator
22  find(const Container& c, const typename Container::value_type& v);
23 
25  template <typename Container>
26  inline typename Container::iterator
27  find(Container& c, const typename Container::value_type& v);
28 
30  template <typename Container, typename Functor>
31  inline Functor&
32  for_each(Container& c, Functor& v);
33 
35  template <typename Container>
36  inline bool
37  has(const Container& c, const typename Container::value_type& v);
38 
40  template <typename Map>
41  typename Map::iterator
42  put(Map& map,
43  const typename Map::key_type& key,
44  const typename Map::mapped_type& value);
45 
46 }
47 
48 # include <misc/algorithm.hxx>
49 
50 #endif // !MISC_CONTAINERS_HH