remove white spaces from range string meta
This commit is contained in:
parent
f82cba0c2f
commit
fb2062263e
1 changed files with 11 additions and 11 deletions
|
@ -49,7 +49,7 @@ namespace MultiArrayHelper
|
||||||
template <typename... Ts>
|
template <typename... Ts>
|
||||||
static inline std::string mk(const std::tuple<Ts...>& tp)
|
static inline std::string mk(const std::tuple<Ts...>& tp)
|
||||||
{
|
{
|
||||||
return TupleToString<N-1>::mk(tp) + " , " + xToString(std::get<N>(tp));
|
return TupleToString<N-1>::mk(tp) + "," + xToString(std::get<N>(tp));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -79,12 +79,12 @@ namespace MultiArrayHelper
|
||||||
template <>
|
template <>
|
||||||
inline std::string xToString<DynamicMetaT>(const DynamicMetaT& x)
|
inline std::string xToString<DynamicMetaT>(const DynamicMetaT& x)
|
||||||
{
|
{
|
||||||
std::string out = "[ ";
|
std::string out = "[";
|
||||||
for(size_t i = 0; i != x.size(); ++i){
|
for(size_t i = 0; i != x.size(); ++i){
|
||||||
out += x[i].first;
|
out += x[i].first;
|
||||||
out += " , ";
|
out += ",";
|
||||||
}
|
}
|
||||||
out.pop_back();
|
//out.pop_back();
|
||||||
out.back() = ']';
|
out.back() = ']';
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
@ -92,11 +92,11 @@ namespace MultiArrayHelper
|
||||||
template <typename T>
|
template <typename T>
|
||||||
inline std::string xToString(const std::vector<T>& x)
|
inline std::string xToString(const std::vector<T>& x)
|
||||||
{
|
{
|
||||||
std::string out = "[ ";
|
std::string out = "[";
|
||||||
for(auto& y: x){
|
for(auto& y: x){
|
||||||
out += xToString(y) + " , ";
|
out += xToString(y) + ",";
|
||||||
}
|
}
|
||||||
out.pop_back();
|
//out.pop_back();
|
||||||
out.back() = ']';
|
out.back() = ']';
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
@ -104,11 +104,11 @@ namespace MultiArrayHelper
|
||||||
template <typename T, size_t N>
|
template <typename T, size_t N>
|
||||||
inline std::string xToString(const std::array<T,N>& x)
|
inline std::string xToString(const std::array<T,N>& x)
|
||||||
{
|
{
|
||||||
std::string out = "[ ";
|
std::string out = "[";
|
||||||
for(auto& y: x){
|
for(auto& y: x){
|
||||||
out += xToString(y) + " , ";
|
out += xToString(y) + ",";
|
||||||
}
|
}
|
||||||
out.pop_back();
|
//out.pop_back();
|
||||||
out.back() = ']';
|
out.back() = ']';
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
@ -116,7 +116,7 @@ namespace MultiArrayHelper
|
||||||
template <typename... Ts>
|
template <typename... Ts>
|
||||||
inline std::string xToString(const std::tuple<Ts...>& tp)
|
inline std::string xToString(const std::tuple<Ts...>& tp)
|
||||||
{
|
{
|
||||||
return "{ " + TupleToString<sizeof...(Ts)-1>::mk(tp) + " }";
|
return "{" + TupleToString<sizeof...(Ts)-1>::mk(tp) + "}";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue