Go to the source code of this file.
Defines |
#define | D(var) { cout << #var << ": " << (var) << endl; } |
#define | TPL_T template <class T> |
#define | TPL_ST template <class S, class T> |
#define | OSTREAM(X...) ostream& operator << (ostream &out, const X& temp) |
#define | _OUT(X, Y...) |
Functions |
TPL_ST | OSTREAM (pair< S, T >) |
TPL_T | OSTREAM (pair< T *, T * >) |
| _OUT (TPL_T, vector< T >) |
| _OUT (TPL_T, list< T >) |
| _OUT (TPL_T, set< T >) |
| _OUT (TPL_T, multiset< T >) |
| _OUT (TPL_ST, map< S, T >) |
| _OUT (TPL_ST, multimap< S, T >) |
| _OUT (TPL_ST, set< S, T >) |
Define Documentation
Value:X OSTREAM(Y) { \
out << "[ "; FOREACH(it, temp) out << *it << ", "; out << "]"; \
return out; };
#define D |
( |
|
var | ) |
{ cout << #var << ": " << (var) << endl; } |
#define OSTREAM |
( |
|
X... | ) |
ostream& operator << (ostream &out, const X& temp) |
#define TPL_ST template <class S, class T> |
#define TPL_T template <class T> |
Function Documentation
_OUT |
( |
TPL_T |
, |
|
|
vector< T > |
|
|
) |
| |
_OUT |
( |
TPL_ST |
, |
|
|
set< S, T > |
|
|
) |
| |
_OUT |
( |
TPL_T |
, |
|
|
list< T > |
|
|
) |
| |
_OUT |
( |
TPL_ST |
, |
|
|
map< S, T > |
|
|
) |
| |
_OUT |
( |
TPL_ST |
, |
|
|
multimap< S, T > |
|
|
) |
| |
_OUT |
( |
TPL_T |
, |
|
|
set< T > |
|
|
) |
| |
_OUT |
( |
TPL_T |
, |
|
|
multiset< T > |
|
|
) |
| |
TPL_T OSTREAM |
( |
pair< T *, T * > |
| ) |
|
TPL_ST OSTREAM |
( |
pair< S, T > |
| ) |
|