MCPcopy Create free account
hub / github.com/ElementsProject/elements / to_s

Function to_s

src/bench/nanobench.h:2736–2744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2734}
2735
2736std::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
2746std::ostream& operator<<(std::ostream& os, Number const& n) {
2747 return n.write(os);

Callers 3

renderFunction · 0.85
RngMethod · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected