Add an accessor for Segment_with_ID_2

This commit is contained in:
Mael Rouxel-Labbé 2023-03-10 09:24:34 +01:00
parent 780f0ab9e4
commit fa20e12e55
1 changed files with 2 additions and 0 deletions

View File

@ -52,6 +52,8 @@ struct Segment_2_with_ID
typedef typename K::Segment_2 Base;
typedef typename K::Point_2 Point_2;
std::size_t id() const { return mID; }
public:
Segment_2_with_ID() : Base(), mID(-1) { }
Segment_2_with_ID(Base const& aS) : Base(aS), mID(-1) { }