zL1ghT_

C++ operator>> overload class "vector"

Mar 17th, 2021 (edited)
44
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. template<vector_t T>
  2. inline std::ostream& operator<< (std::ostream& os, const vector<2, T>& vector)
  3. {
  4.     os << "Vector2(" << vector.x() << ", " << vector.y() << ")";
  5.     return os;
  6. }
RAW Paste Data