xmscore  1.0
utility.h File Reference
#include <sstream>
#include <utility>

Go to the source code of this file.

Typedefs

typedef std::pair< int, int > xms::PAIR_I_I
 short rename
 

Functions

template<class _T , class _U >
std::ostream & xms::operator<< (std::ostream &a_output, const std::pair< _T, _U > &a_value)
 Streams a pair to a_output. More...
 
template<typename T >
void xms::VecToStream (std::stringstream &a_ss, const T &a_v, std::string a_label)
 Export a vector or bitset to a stringstream. More...
 

Detailed Description

Definition in file utility.h.

Function Documentation

◆ operator<<()

template<class _T , class _U >
std::ostream& xms::operator<< ( std::ostream &  a_output,
const std::pair< _T, _U > &  a_value 
)

Streams a pair to a_output.

Parameters
a_outputThe stream.
a_valueThe pair.
Returns
stream reference.

Definition at line 25 of file utility.h.

◆ VecToStream()

template<typename T >
void xms::VecToStream ( std::stringstream &  a_ss,
const T &  a_v,
std::string  a_label 
)

Export a vector or bitset to a stringstream.

Parameters
a_ssThe stream.
a_vThe vector.
a_labelA label

Definition at line 38 of file utility.h.

References xms::VecToStream().

Referenced by xms::VecToStream().