- Timestamp:
- Nov 8, 2024, 5:20:16 PM (6 weeks ago)
- Branches:
- master
- Children:
- 74cbaa3
- Parents:
- 62595b31
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/rational.hfa
r62595b31 r44e2a5a 12 12 // Created On : Wed Apr 6 17:56:25 2016 13 13 // Last Modified By : Peter A. Buhr 14 // Last Modified On : Fri Oct 6 07:52:20 202315 // Update Count : 12 214 // Last Modified On : Fri Nov 8 17:02:09 2024 15 // Update Count : 126 16 16 // 17 17 … … 23 23 // implementation 24 24 25 forall( T | arithmetic( T )) {25 forall( T ) { 26 26 struct rational { 27 27 T numerator, denominator; // invariant: denominator > 0 28 28 }; // rational 29 } 29 30 31 forall( T | arithmetic( T ) ) { 30 32 // constructors 31 33
Note: See TracChangeset
for help on using the changeset viewer.