| 2734 | } |
| 2735 | |
| 2736 | std::string to_s(uint64_t n) { |
| 2737 | std::string str; |
| 2738 | do { |
| 2739 | str += static_cast<char>('0' + static_cast<char>(n % 10)); |
| 2740 | n /= 10; |
| 2741 | } while (n != 0); |
| 2742 | std::reverse(str.begin(), str.end()); |
| 2743 | return str; |
| 2744 | } |
| 2745 | |
| 2746 | std::ostream& operator<<(std::ostream& os, Number const& n) { |
| 2747 | return n.write(os); |
no test coverage detected