42 #ifndef TEUCHOS_TO_STRING_HPP
43 #define TEUCHOS_TO_STRING_HPP
63 std::ostringstream oss;
104 static std::string
toString(
const std::string &t )
115 std::ostringstream os;
116 os.setf (std::ios::scientific);
132 std::ostringstream os;
133 os.setf (std::ios::scientific);
147 template<
typename T1,
typename T2>
150 static std::string
toString (
const std::pair<T1, T2>& t) {
151 std::ostringstream oss;
152 oss <<
"(" << t.first <<
"," << t.second <<
")";
160 #endif // TEUCHOS_TO_STRING_HPP
static std::string toString(const std::string &t)
static std::string toString(const T &t)
Teuchos header file which uses auto-configuration information to include necessary C++ headers...
static std::string toString(const bool &t)
static std::string toString(const float &t)
std::string toString(const HashSet< Key > &h)
static std::string toString(const std::pair< T1, T2 > &t)
Default traits class for converting objects into strings.
static std::string toString(const double &t)