| 101 | } |
| 102 | |
| 103 | static void checkFormatTo(int num) |
| 104 | { |
| 105 | for (int idx = 0; idx < num; ++idx) |
| 106 | { |
| 107 | int i = 42; |
| 108 | double d = 7.7; |
| 109 | char buf[100] = { '?', '?', '?', '?', '?', '?', '?', |
| 110 | '?', '?', '?', '?', '?', '?' }; |
| 111 | auto ret = std::format_to_n(buf, 99, "{} {}", i, d); |
| 112 | *(ret.out) = '\0'; |
| 113 | if (num == 1) |
| 114 | { |
| 115 | std::cout << buf << '\n'; |
| 116 | return; |
| 117 | } |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | template<typename T> |
| 122 | void measure(std::string s, T func) |
nothing calls this directly
no outgoing calls
no test coverage detected