ProteoWizard
Functions
Container.hpp File Reference
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <algorithm>
#include <numeric>
#include <utility>
#include <boost/foreach.hpp>

Go to the source code of this file.

Functions

template<typename T1 , typename T2 >
ostream & std::operator<< (ostream &o, const pair< T1, T2 > &p)
 
template<typename T >
ostream & std::operator<< (ostream &o, const vector< T > &v)
 
template<typename T , typename P >
ostream & std::operator<< (ostream &o, const set< T, P > &s)
 
ostream & std::operator<< (ostream &o, const map< string, string > &m)
 
template<typename KeyT >
ostream & std::operator<< (ostream &o, const map< KeyT, string > &m)
 
template<typename ValueT >
ostream & std::operator<< (ostream &o, const map< string, ValueT > &m)
 
template<typename KeyT , typename ValueT >
ostream & std::operator<< (ostream &o, const map< KeyT, ValueT > &m)
 

Function Documentation

◆ operator<<() [1/7]

template<typename T1 , typename T2 >
ostream& std::operator<< ( ostream &  o,
const pair< T1, T2 > &  p 
)

Definition at line 84 of file Container.hpp.

85  {
86  return (o << "( " << p.first << ", " << p.second << " )");
87  }

◆ operator<<() [2/7]

template<typename T >
ostream& std::operator<< ( ostream &  o,
const vector< T > &  v 
)

Definition at line 90 of file Container.hpp.

91  {
92  o << "(";
93  for(const auto& i : v)
94  o << " " << i;
95  o << " )";
96 
97  return o;
98  }

◆ operator<<() [3/7]

template<typename T , typename P >
ostream& std::operator<< ( ostream &  o,
const set< T, P > &  s 
)

Definition at line 101 of file Container.hpp.

102  {
103  o << "(";
104  for (const auto& i : s)
105  o << " " << i;
106  o << " )";
107 
108  return o;
109  }

◆ operator<<() [4/7]

ostream& std::operator<< ( ostream &  o,
const map< string, string > &  m 
)
inline

Definition at line 111 of file Container.hpp.

112  {
113  o << "(";
114  for (const auto& p : m)
115  o << " \"" << p.first << "\"->\"" << p.second << "\"";
116  o << " )";
117 
118  return o;
119  }

◆ operator<<() [5/7]

template<typename KeyT >
ostream& std::operator<< ( ostream &  o,
const map< KeyT, string > &  m 
)

Definition at line 122 of file Container.hpp.

123  {
124  o << "(";
125  for (const auto& p : m)
126  o << " " << p.first << "->\"" << p.second << "\"";
127  o << " )";
128 
129  return o;
130  }

◆ operator<<() [6/7]

template<typename ValueT >
ostream& std::operator<< ( ostream &  o,
const map< string, ValueT > &  m 
)

Definition at line 133 of file Container.hpp.

134  {
135  o << "(";
136  for (const auto& p : m)
137  o << " \"" << p.first << "\"->" << p.second << "";
138  o << " )";
139 
140  return o;
141  }

◆ operator<<() [7/7]

template<typename KeyT , typename ValueT >
ostream& std::operator<< ( ostream &  o,
const map< KeyT, ValueT > &  m 
)

Definition at line 144 of file Container.hpp.

145  {
146  o << "(";
147  for (const auto& p : m)
148  o << " " << p.first << "->" << p.second << "";
149  o << " )";
150 
151  return o;
152  }