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 110 of file Utils.hh.

Referenced by VetoedFinalState::project().

00110                                                                   {
00111     stringstream out;
00112     for (size_t i = 0; i < v.size(); ++i) {
00113       if (i != 0) out << sep;
00114       out << v[i];
00115     }
00116     return out.str();
00117   }

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

Definition at line 103 of file Utils.hh.

References Rivet::s.

00103                                                              {
00104     for (typename vector<T>::const_iterator s = s2.begin(); s != s2.end(); ++s) {
00105       s1.push_back(*s);
00106     }
00107   }

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

Definition at line 96 of file Utils.hh.

References Rivet::s.

00096                                                        {
00097     for (typename set<T>::const_iterator s = s2.begin(); s != s2.end(); ++s) {
00098       s1.insert(*s);
00099     }
00100   }