| 59 | */ |
| 60 | template <typename numtype, size_t N> |
| 61 | std::string show(std::array<numtype, N> a, std::string name) { |
| 62 | std::string output = "\n\n"; |
| 63 | if (name != "") { |
| 64 | output += name + " (" + std::to_string(N) + ") : \n"; |
| 65 | } |
| 66 | for (size_t i = 0; i < N; i++) { |
| 67 | output += std::to_string(a[i]) + "\n"; |
| 68 | if (i > 10) { |
| 69 | output += "...\n"; |
| 70 | break; |
| 71 | } |
| 72 | } |
| 73 | return output; |
| 74 | } |
| 75 | |
| 76 | int main() { |
| 77 |
nothing calls this directly
no outgoing calls
no test coverage detected