|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
zoned_time::operator= | ||||
| Nonmember functions | ||||
| Helper classes | ||||
| Deduction guides |
zoned_time& operator=(const zoned_time& other)=default; | (1) | (since C++20) |
zoned_time& operator=(conststd::chrono::sys_time<Duration>& other); | (2) | (since C++20) |
zoned_time& operator=(conststd::chrono::local_time<Duration>& other); | (3) | (since C++20) |
Assign the value ofother to*this.
zoned_time has no move assignment operator; a move is a copy.zone is the non-static data member holding the stored time zone pointer) and assigns the result to the stored time point. The time zone pointer is unchanged. After this call,get_local_time()== other.*this