MCPcopy Create free account
hub / github.com/catchorg/Catch2 / rangeToString

Function rangeToString

extras/catch_amalgamated.hpp:2828–2838  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2826 namespace Detail {
2827 template<typename InputIterator, typename Sentinel = InputIterator>
2828 std::string rangeToString(InputIterator first, Sentinel last) {
2829 ReusableStringStream rss;
2830 rss << "{ ";
2831 if (first != last) {
2832 rss << ::Catch::Detail::stringify(*first);
2833 for (++first; first != last; ++first)
2834 rss << ", " << ::Catch::Detail::stringify(*first);
2835 }
2836 rss << " }";
2837 return rss.str();
2838 }
2839 }
2840
2841} // namespace Catch

Callers 3

convertMethod · 0.70
convertMethod · 0.70
describeMethod · 0.50

Calls 2

stringifyFunction · 0.70
strMethod · 0.45

Tested by 1

describeMethod · 0.40