stl_adds.h File Reference
#include <list>
#include <string>
Go to the source code of this file.
Namespaces |
namespace | std |
| contains some additions to the standard template library
|
Defines |
#define | FOREACH(colltype, coll, it) for( colltype::iterator it = (coll).begin(); it!= (coll).end(); it++) |
#define | FOREACHC(colltype, coll, it) for( colltype::const_iterator it = (coll).begin(); it!= (coll).end() ; it++ ) |
Functions |
template<typename T > |
T | abs (T v) |
| absolute function for all types
|
template<class T , class A > |
list< T, A > & | operator+= (list< T, A > &l1, const list< T, A > &l2) |
| += operators for list (list concat)
|
template<class T , class A > |
list< T, A > & | operator+= (list< T, A > &l1, const T &v) |
| += operators for list (append)
|
template<class T , class A > |
list< T, A > | operator+ (const list< T, A > &l1, const list< T, A > &l2) |
| + operators for lists (list concat)
|
string | itos (int i) |
Define Documentation
#define FOREACH |
( |
colltype, |
|
|
coll, |
|
|
it |
|
) |
for( colltype::iterator it = (coll).begin(); it!= (coll).end(); it++) |
#define FOREACHC |
( |
colltype, |
|
|
coll, |
|
|
it |
|
) |
for( colltype::const_iterator it = (coll).begin(); it!= (coll).end() ; it++ ) |