std::chrono...:time_zone)(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸŽ€ NAME πŸŽ€

okay so bestie, this page is from the C++ Standard Libary manual β€” yes, that's the manual name, spelling and all πŸ’… β€” and it's all about std::chrono::operator==,(std::chrono::time_zone). The NAME line is literally the same iconic title again: std::chrono::operator==,(std::chrono::time_zone). No cap, that comma is staying.


✨ Synopsis ✨

Defined in header <chrono> β€” exact, keep it.

Both overloads are since C++20:

Overload (1) β€” the equality one:

bool operator==( const std::chrono::time_zone& x, const std::chrono::time_zone& y ) noexcept;

Overload (2) β€” the spaceship one:

std::strong_ordering operator<=>( const std::chrono::time_zone& x, const std::chrono::time_zone& y ) noexcept;

It compares the two time_zone values x and y by name. That's the vibe check: names only, periodt.

The <, <=, >, >=, and != operators are synthesized from operator<=> and operator== respectively. Slay, synthesized operators.


🌈 Return value 🌈

  1. x.name() == y.name()
  2. x.name() <=> y.name()

πŸ’– that's the whole page, bestie β€” source/version: http://cppreference.com Β· date: 2024.06.10 Β· footer tag: std::chrono...:time_zone)(3) β€” mwah πŸ’…βœ¨

πŸ“¦ where this page comes from