12 #ifndef QMCPLUSPLUS_STLPRETTYPRINT_HPP 13 #define QMCPLUSPLUS_STLPRETTYPRINT_HPP 25 std::ostream& operator<<(std::ostream& out, const std::vector<T>& rhs)
28 auto cursor = rhs.begin();
29 while (cursor != rhs.end())
32 const T ref_value = *cursor;
34 while (++cursor != rhs.end() && *cursor == ref_value)
39 out <<
"(x" << count <<
")";
41 if (cursor != rhs.end())
helper functions for EinsplineSetBuilder