NumCpp  2.1.0
A C++ implementation of the Python Numpy library
value2str.hpp
Go to the documentation of this file.
1 #pragma once
30 
32 
33 #include <complex>
34 #include <sstream>
35 #include <string>
36 
37 namespace nc
38 {
39  namespace utils
40  {
41  //============================================================================
48  template<typename dtype>
49  std::string value2str(dtype inValue)
50  {
52 
53  std::stringstream ss;
54  ss << inValue;
55  return ss.str();
56  }
57  } // namespace utils
58 } // namespace nc
StaticAsserts.hpp
STATIC_ASSERT_ARITHMETIC_OR_COMPLEX
#define STATIC_ASSERT_ARITHMETIC_OR_COMPLEX(dtype)
Definition: StaticAsserts.hpp:51
nc
Definition: Coordinate.hpp:45
nc::utils::value2str
std::string value2str(dtype inValue)
Definition: value2str.hpp:49