stl_adds.h

Go to the documentation of this file.
00001 #ifndef __STL_ADDS_H
00002 #define __STL_ADDS_H
00003 
00004 #include<list>
00005 #include<string>
00006 
00007 namespace std {
00008 
00009   /// += operators for list (list concat)
00010   template <class T, class A>
00011     list<T,A>& operator += (list<T,A>& l1, const list<T,A>& l2) 
00012     { l1.insert(l1.end(), l2.begin(), l2.end()); return l1;}
00013   
00014   /// += operators for list (append)
00015   template <class T, class A>
00016     list<T,A>& operator += (list<T,A>& l1, const T& v) 
00017     { l1.push_back(v); return l1;}
00018   
00019   string itos(int i);
00020 
00021 }
00022 
00023 #endif

Generated on Mon Aug 7 16:40:14 2006 for Robotsystem of the Robot Group Leipzig by  doxygen 1.4.7