42 #ifndef TEUCHOS_TO_STRING_HPP
43 #define TEUCHOS_TO_STRING_HPP
61 static std::string toString(
const T &t )
63 std::ostringstream oss;
81 std::string toString(
const T& t)
91 static std::string toString(
const bool &t )
104 static std::string toString(
const std::string &t )
114 static std::string toString (
const double& t) {
115 std::ostringstream os;
116 os.setf (std::ios::scientific);
131 static std::string toString (
const float& t) {
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
Teuchos header file which uses auto-configuration information to include necessary C++ headers...
Default traits class for converting objects into strings.