Changeset 2212:0ad3835449f8 in lemon0.x for lemon/dim2.h
 Timestamp:
 09/08/06 10:55:07 (13 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@2940
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

lemon/dim2.h
r2207 r2212 74 74 Point(T a, T b) : x(a), y(b) { } 75 75 76 ///Size of vector 77 int size() const { return 2; } 78 79 ///Subscripting operator 80 T& operator[](int idx) { return idx == 0 ? x : y; } 81 82 ///Const subscripting operator 83 const T& operator[](int idx) const { return idx == 0 ? x : y; } 76 84 77 85 ///Conversion constructor … … 164 172 ///\relates Point 165 173 template <typename T> 166 inline Point<T> make _Point(const T& x, const T& y) {174 inline Point<T> makePoint(const T& x, const T& y) { 167 175 return Point<T>(x, y); 168 176 }
Note: See TracChangeset
for help on using the changeset viewer.