GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::chrono::zoned_traits(3) C++ Standard Libary std::chrono::zoned_traits(3)

std::chrono::zoned_traits - std::chrono::zoned_traits


Defined in header <chrono>
template < class TimeZonePtr > (1) (since C++20)
struct zoned_traits { };
template <> (2) (since C++20)
struct zoned_traits<const std::chrono::time_zone*>;


The class zoned_traits provides a way to customize the behavior of the constructors
of std::chrono::zoned_time with custom time zone pointer types. In particular, it
allows such types to specify the default time zone to use and the mapping of a time
zone's name to the corresponding time zone pointer. It is acceptable for custom time
zone pointer types to not support either operation, in which case the corresponding
constructors of zoned_time will not participate in overload resolution.


The primary template is empty. A specialization is provided for const
std::chrono::time_zone*, the default time zone pointer type.

std::chrono::zoned_traits<const std::chrono::time_zone*>::default_zone


static const std::chrono::time_zone* default_zone();


Returns a time zone pointer for the default time zone (UTC).

Return value


std::chrono::locate_zone("UTC").

std::chrono::zoned_traits<const std::chrono::time_zone*>::locate_zone


static const std::chrono::time_zone* locate_zone(std::string_view name);


Returns the time zone pointer for the time zone designated by name.

Return value


std::chrono::locate_zone(name).

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.