Changeset 10a9479d for libcfa/src/rational.hfa
- Timestamp:
- Nov 23, 2024, 8:28:37 PM (2 months ago)
- Branches:
- master
- Children:
- 956b389
- Parents:
- b006c51e (diff), de7b7a5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/rational.hfa
rb006c51e r10a9479d 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.