std::chrono::zoned_time<Duration,TimeZonePtr>::operator= (3) - Linux Manuals
std::chrono::zoned_time<Duration,TimeZonePtr>::operator=: std::chrono::zoned_time<Duration,TimeZonePtr>::operator=
Command to display std::chrono::zoned_time<Duration,TimeZonePtr>::operator=
manual in Linux: $ man 3 std::chrono::zoned_time<Duration,TimeZonePtr>::operator=
NAME
std::chrono::zoned_time<Duration,TimeZonePtr>::operator= - std::chrono::zoned_time<Duration,TimeZonePtr>::operator=
Synopsis
zoned_time& operator=(const zoned_time& other) = default; (1) (since C++20)
zoned_time& operator=(const std::chrono::sys_time<Duration>& other); (2) (since C++20)
zoned_time& operator=(const std::chrono::local_time<Duration>& other); (3) (since C++20)
Assign the value of other to *this.
1) Defaulted copy assignment operator. Copy-assigns both the stored time point and the stored time zone pointer. zoned_time has no move assignment operator; a move is a copy.
2) Assigns other to the stored time point. The time zone pointer is unchanged. After this call, get_sys_time() == other.
3) Converts other to a std::chrono::sys_time as if by zone->to_sys(other) (where 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.
Return value
*this.
Pages related to std::chrono::zoned_time<Duration,TimeZonePtr>::operator=
- std::chrono::zoned_time<Duration,TimeZonePtr>::operatorlocal_time<duration>, (3) - std::chrono::zoned_time<Duration,TimeZonePtr>::operatorlocal_time<duration>,
- std::chrono::zoned_time<Duration,TimeZonePtr>::operatorlocal_time<duration>,std::chrono::zoned_time<Duration,TimeZonePtr>::get_local_time (3) - std::chrono::zoned_time<Duration,TimeZonePtr>::operatorlocal_time<duration>,std::chrono::zoned_time<Duration,TimeZonePtr>::get_local_time
- std::chrono::zoned_time<Duration,TimeZonePtr>::operatorsys_time<duration>, (3) - std::chrono::zoned_time<Duration,TimeZonePtr>::operatorsys_time<duration>,
- std::chrono::zoned_time<Duration,TimeZonePtr>::operatorsys_time<duration>,std::chrono::zoned_time<Duration,TimeZonePtr>::get_sys_time (3) - std::chrono::zoned_time<Duration,TimeZonePtr>::operatorsys_time<duration>,std::chrono::zoned_time<Duration,TimeZonePtr>::get_sys_time
- std::chrono::zoned_time<Duration,TimeZonePtr>::get_info (3) - std::chrono::zoned_time<Duration,TimeZonePtr>::get_info
- std::chrono::zoned_time<Duration,TimeZonePtr>::get_time_zone (3) - std::chrono::zoned_time<Duration,TimeZonePtr>::get_time_zone
- std::chrono::zoned_time<Duration,TimeZonePtr>::zoned_time (3) - std::chrono::zoned_time<Duration,TimeZonePtr>::zoned_time
- std::chrono::zoned_time (3) - std::chrono::zoned_time
- std::chrono::zoned_traits (3) - std::chrono::zoned_traits
- std::chrono::_V2_steady_clock (3)
- std::chrono::_V2_system_clock (3)
- std::chrono::abs(std::chrono::duration) (3) - std::chrono::abs(std::chrono::duration)
- std::chrono::ambiguous_local_time (3) - std::chrono::ambiguous_local_time
- std::chrono::ceil(std::chrono::duration) (3) - std::chrono::ceil(std::chrono::duration)
- std::chrono::ceil(std::chrono::time_point) (3) - std::chrono::ceil(std::chrono::time_point)
- std::chrono::choose (3) - std::chrono::choose
- std::chrono::clock_cast (3) - std::chrono::clock_cast