std::locale...,operator!=(3)

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

okay bestie, welcome to the std::locale...,operator!=(3) page from the C++ Standard Libary β€” yes, that β€œLibary” spelling is straight from the page, not me being chaotic 😭. This one is all about checking whether two locales are the same vibe, and the != version is literally the == version with a plot twist. πŸŽ€

🌸 NAME 🌸

std::locale::operator==,operator!= β€” std::locale::operator==,operator!=

✨ Synopsis ✨

Defined in header <locale>:

bool operator==( const locale& other ) const; (1)
bool operator!=( const locale& other ) const; (2) (until C++20)

These operators test two locales for equality, fr fr. Named locales are considered equal if their names are equal. Unnamed locales are considered equal if they are copies of each other.

The != operator is synthesized from operator==. (since C++20) πŸ‘‘

πŸ’– Parameters πŸ’–

  • other β€” a std::locale object to compare 🫢

πŸŽ€ Return value πŸŽ€

  1. true if other is a copy of *this or has an identical name, false otherwise. βœ…
  2. false if other is a copy of *this or has an identical name, true otherwise. πŸ™ˆ

πŸ¦‹ Example πŸ¦‹

This section is incomplete 😭 Reason: no example

πŸ‘‘ See also πŸ‘‘

  • constructor β€” constructs a new locale (public member function) 🌈
  • name β€” returns the name of the locale or "*" if unnamed (public member function) πŸ’œ

πŸ“ Category πŸ“

  • Todo no example

mwah πŸ’‹ that’s the whole page, bestie β€” sourced from http://cppreference.com, stamped 2024.06.10, and signed std::locale...,operator!=(3). periodt ✨

πŸ“¦ where this page comes from