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