std::chrono...ekday_last)(3)
π NAME π
okay so bestie, this is the page for std::chrono::operator==(std::chrono::weekday_last) β and the manual name is C++ Standard Libary (yes, exactly like that, no cap). The NAME line is literally std::chrono::operator==(std::chrono::weekday_last) β std::chrono::operator==(std::chrono::weekday_last). Repetition? Iconic. π
β¨ Synopsis β¨
Defined in header <chrono>:
constexpr bool operator==( const std::chrono::weekday_last& x,
const std::chrono::weekday_last& y )
(since C++20)noexcept;
This compares the two weekday_last values x and y. π«Ά
The != operator is synthesized from operator==.
π«Ά Return value π«Ά
It returns x.weekday() == y.weekday().
π Example π
Run this code, bestie:
// Run this code
#include <chrono>
#include <iostream>
int main()
{
constexpr auto wdl1{std::chrono::Tuesday[std::chrono::last]};
constexpr std::chrono::weekday_last wdl2{std::chrono::weekday(2)};
std::cout << std::boolalpha
<< (wdl1 == wdl2) << ' '
<< (wdl1 == std::chrono::Wednesday[std::chrono::last]) <<
'\n';
}
π Output π
true false
mwah π β source/version: http://cppreference.com, dated 2024.06.10, filed under std::chrono...ekday_last)(3). Thatβs the cute little footer, preserved and slaying. π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms