Robotsystem from Robot Group Leipzig: stl_adds.h Source File

- Main Page
- Modules
- Namespaces
- Classes
- Files
- Directories
- Examples

- File List
- File Members

# 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 namespace std {
    00006
    00007 /// += operators for list (list concat)
    00008 template <class T, class A>
    00009 list<T,A>& operator += (list<T,A>& l1, const list<T,A>& l2) { l1.insert(l1.end(), l2.begin(), l2.end()); return l1;}
    00010
    00011 /// += operators for list (append)
    00012 template <class T, class A>
    00013 list<T,A>& operator += (list<T,A>& l1, const T& v) { l1.push_back(v); return l1;}
    00014
    00015 }
    00016
    00017 #endif