zL1ghT_

C++ operator>> overload class "vector"

Mar 17th, 2021 (edited)
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment