#pragma once #include #include #include namespace Void::Containers { /// Render any range's elements as "[e0, e1, …]" using the shared /// reflection renderer Void::Meta::repr (so structs print their fields): /// Containers::debug_dump(my_ring); // "[Point{x: 1, y: 2}, …]" template [[nodiscard]] std::string debug_dump(const R& range) { std::string out = "["; bool first = true; for (const auto& e : range) { if (!first) { out += ", "; } out += Void::Meta::repr(e); first = false; } out += ']'; return out; } } // namespace Void::Containers