From Jason Turner

[time.clock.cast.id]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmppbfep1q1/{from.md → to.md} +53 -0
tmp/tmppbfep1q1/{from.md → to.md} RENAMED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Identity conversions <a id="time.clock.cast.id">[[time.clock.cast.id]]</a>
2
+
3
+ ``` cpp
4
+ template<class Clock>
5
+ struct clock_time_conversion<Clock, Clock> {
6
+ template<class Duration>
7
+ time_point<Clock, Duration>
8
+ operator()(const time_point<Clock, Duration>& t) const;
9
+ };
10
+ ```
11
+
12
+ ``` cpp
13
+ template<class Duration>
14
+ time_point<Clock, Duration>
15
+ operator()(const time_point<Clock, Duration>& t) const;
16
+ ```
17
+
18
+ *Returns:* `t`.
19
+
20
+ ``` cpp
21
+ template<>
22
+ struct clock_time_conversion<system_clock, system_clock> {
23
+ template<class Duration>
24
+ sys_time<Duration>
25
+ operator()(const sys_time<Duration>& t) const;
26
+ };
27
+ ```
28
+
29
+ ``` cpp
30
+ template<class Duration>
31
+ sys_time<Duration>
32
+ operator()(const sys_time<Duration>& t) const;
33
+ ```
34
+
35
+ *Returns:* `t`.
36
+
37
+ ``` cpp
38
+ template<>
39
+ struct clock_time_conversion<utc_clock, utc_clock> {
40
+ template<class Duration>
41
+ utc_time<Duration>
42
+ operator()(const utc_time<Duration>& t) const;
43
+ };
44
+ ```
45
+
46
+ ``` cpp
47
+ template<class Duration>
48
+ utc_time<Duration>
49
+ operator()(const utc_time<Duration>& t) const;
50
+ ```
51
+
52
+ *Returns:* `t`.
53
+