std Namespace Reference


Detailed Description

STL namespace.


Classes

struct  std::less< const Rivet::Projection * >
 This is the function called when comparing two (const) pointers to Rivet::Projection. More...
class  vector
 STL class.

Functions

template<typename T>
void operator+= (set< T > &s1, const set< T > &s2)
template<typename T>
void operator+= (vector< T > &s1, const vector< T > &s2)
template<typename T>
string join (const vector< T > &v, const string &sep=" ")

Function Documentation

string std::join ( const vector< T > &  v,
const string &  sep = " " 
) [inline]

Definition at line 125 of file Utils.hh.

Referenced by VetoedFinalState::project().

00125                                                                   {
00126     stringstream out;
00127     for (size_t i = 0; i < v.size(); ++i) {
00128       if (i != 0) out << sep;
00129       out << v[i];
00130     }
00131     return out.str();
00132   }

void std::operator+= ( vector< T > &  s1,
const vector< T > &  s2 
) [inline]

Definition at line 118 of file Utils.hh.

References Rivet::s.

00118                                                              {
00119     for (typename vector<T>::const_iterator s = s2.begin(); s != s2.end(); ++s) {
00120       s1.push_back(*s);
00121     }
00122   }

void std::operator+= ( set< T > &  s1,
const set< T > &  s2 
) [inline]

Definition at line 111 of file Utils.hh.

References Rivet::s.

00111                                                        {
00112     for (typename set<T>::const_iterator s = s2.begin(); s != s2.end(); ++s) {
00113       s1.insert(*s);
00114     }
00115   }