// (c) Copyright 2010 Terry Golubiewski, all rights reserved. #ifndef CARTESIAN_IO_H #define CARTESIAN_IO_H #pragma once #include #include #include namespace cartesian { template inline std::basic_ostream& operator<<(std::basic_ostream& os, const vector& v) { os << '<' << v[0]; for (int i=1; i!=Dim; ++i) os << ' ' << v[i]; return os << '>'; } // << vector template inline std::basic_ostream& operator<<(std::basic_ostream& os, const point& p) { os << '(' << p[0]; for (int i=1; i!=Dim; ++i) os << ' ' << p[i]; return os << ')'; } // << point } // cartesian #endif