All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
slist.h
Go to the documentation of this file.
1 /* slist.h
2  */
3 #ifndef SLIST_H
4 #define SLIST_H
5 
7 #ifdef __GNUC__
8 # include <ext/slist>
9 #else
10 # include <list>
11 #endif
12 
13 namespace osl
14 {
15  namespace stl
16  {
20  template <class T, class Alloc=pool_allocator<T> >
21  struct slist :
22 #ifdef __GNUC__
23  __gnu_cxx::slist<T,Alloc>
24 #else
25  std::list<T,Alloc>
26 #endif
27  {
28  slist() {}
29  slist(const slist&);
30  ~slist();
31 
32 #ifndef __GNUC__
33  void erase_after(iterator p) { erase(++p); }
34 #endif
35  };
36  template <class T,class Alloc>
38 #ifdef __GNUC__
39  __gnu_cxx::slist<T,Alloc>(src)
40 #else
41  std::list<T,Alloc>(src)
42 #endif
43  {
44  }
45  template <class T,class Alloc>
47  {
48  }
49  } // namespace stl
50  using stl::slist;
51 } // namespace stl
52 
53 
54 #endif /* SLIST_H */
55 // ;;; Local Variables:
56 // ;;; mode:c++
57 // ;;; c-basic-offset:2
58 // ;;; End: