A Crash Course in Calendars, Dates, Time, and Time Zones Compile-Time Rational Numbers Durations Clocks Time Points Dates Time Zones4 Agenda Compile-Time Rational Numbers Durations Clocks Time Points Dates Work with rational numbers at compile time Always normalized representation Needed for durations in the library6 Compile-Time Rational Numbers Define a rational number: using r1 = ratio<1'000'000'000'000'000'000, 1>;9 Agenda Compile-Time Rational Numbers Durations Clocks Time Points Dates Time Zones10 Durations Interval between two points in time Represented by std::duration 0 码力 | 43 页 | 551.60 KB | 6 月前3
共 1 条
- 1













