Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::hash<std::chrono::year_month_day_last>

The template specialization of std::hash for std::chrono::year_month_day_last allows users to obtain hashes of objects of type std::chrono::year_month_day_last.

NotebookLM
Defined in header <chrono>
template<> struct hash<std::chrono::year_month_day_last>;
(since C++26)

The template specialization of std::hash for std::chrono::year_month_day_last allows users to obtain hashes of objects of type std::chrono::year_month_day_last. This specialization is enabled.

The operator() of this specialization is noexcept.

Notes

Feature-test macro Value Std Feature
__cpp_lib_chrono 202306L (C++26) Hashing support for std::chrono value classes

See also

(C++11)
hash function object
(class template)

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.