| 344 | }; |
| 345 | |
| 346 | struct custom_vec : std::vector<int> { |
| 347 | using std::vector<int>::vector; |
| 348 | |
| 349 | friend auto operator<<(std::ostream& os, const custom_vec& c) |
| 350 | -> std::ostream& { |
| 351 | os << "custom_vec{"; |
| 352 | if (!c.empty()) { |
| 353 | os << c.front(); |
| 354 | std::for_each(std::next(c.begin()), c.end(), |
| 355 | [&os](int const v) { os << ", " << v; }); |
| 356 | } |
| 357 | os << '}'; |
| 358 | return os; |
| 359 | } |
| 360 | }; |
| 361 | |
| 362 | struct custom_non_printable_type { |
| 363 | int value; |
nothing calls this directly
no outgoing calls
no test coverage detected