test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
ToString.h File Reference
#include <sstream>
#include <iostream>

Go to the source code of this file.

Functions

template<class T >
std::string toString (const T &aT)
 
template<class T >
std::string toString (const std::pair< T, T > &aT)
 

Function Documentation

template<class T >
std::string toString ( const T aT)

Definition at line 6 of file ToString.h.

6  {
7  std::ostringstream oss;
8  oss << aT;
9  return oss.str();
10 }
template<class T >
std::string toString ( const std::pair< T, T > &  aT)

Definition at line 12 of file ToString.h.

12  {
13  std::ostringstream oss;
14  oss << "(" << aT.first << ", " << aT.second << ")";
15  return oss.str();
16 }