NumCpp
2.7.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
num2str.hpp
Go to the documentation of this file.
1
#pragma once
29
30
#include "
NumCpp/Core/Internal/StaticAsserts.hpp
"
31
32
#include <string>
33
34
namespace
nc
35
{
36
namespace
utils
37
{
38
//============================================================================
45
template
<
typename
dtype>
46
std::string
num2str
(dtype inNumber)
47
{
48
STATIC_ASSERT_ARITHMETIC
(dtype);
49
50
return
std::to_string(inNumber);
51
}
52
}
// namespace utils
53
}
// namespace nc
StaticAsserts.hpp
STATIC_ASSERT_ARITHMETIC
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition:
StaticAsserts.hpp:37
nc::utils::num2str
std::string num2str(dtype inNumber)
Definition:
num2str.hpp:46
nc
Definition:
Coordinate.hpp:45
include
NumCpp
Utils
num2str.hpp
Generated by
1.9.1