Fixed read-write mix up in Polygon_2 doc

This commit is contained in:
Mael Rouxel-Labbé 2019-03-15 20:57:03 +01:00
parent 0143042577
commit b4a0ee0144
1 changed files with 5 additions and 6 deletions

View File

@ -516,18 +516,17 @@ transform(const Transformation& t, const Polygon_2<Traits_P,Container_P>& p);
/// followed by the output of the coordinates of the vertices.
/// @{
/// Inserts the polygon `p` into the stream `os`. \pre The insert
/// operator must be defined for `Point_2`.
/// Reads a polygon from stream `is` and assigns it to `p`.
/// \pre The extract operator must be defined for `Point_2`.
/// \memberof Polygon_2
template <class Traits_P, class Container_P>
std::istream &operator>>(std::istream &is, Polygon_2<Traits_P,Container_P>& p);
/// Reads a polygon from stream `is` and assigns it
/// to `p`. \pre The extract operator must be defined for `Point_2`.
/// Inserts the polygon `p` into the stream `os`.
/// \pre The insert operator must be defined for `Point_2`.
/// \memberof Polygon_2
template <class Traits_P, class Container_P>
std::ostream
&operator<<(std::ostream &os, const Polygon_2<Traits_P,Container_P>& p);
std::ostream &operator<<(std::ostream &os, const Polygon_2<Traits_P,Container_P>& p);
/// @} // IO