Unverified Commit a5c38165 authored by ZHB's avatar ZHB Committed by GitHub
Browse files

修改“可变参数模板的应用”中的代码

parent 6db31ece
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -437,9 +437,9 @@ inline void _debug(const char* format, First first, Rest... rest) {
}

template <typename T>
ostream& operator<<(ostream& os, vector<T> V) {
ostream& operator<<(ostream& os, const vector<T>& V) {
  os << "[ ";
  for (auto vv : V) os << vv << ", ";
  for (const auto& vv : V) os << vv << ", ";
  os << "]";
  return os;
}