MCPcopy Create free account
hub / github.com/boost-ext/ut / custom_vec

Class custom_vec

test/ut/ut.cpp:346–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344};
345
346struct 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
362struct custom_non_printable_type {
363 int value;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected