Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::locale::operator==, operator!=

      From cppreference.com
      <cpp‎ |locale‎ |locale
       
       
       
      Localization library
       
       
      bool operator==(const locale& other)const;
      (1)
      bool operator!=(const locale& other)const;
      (2)(until C++20)

      Tests two locales for equality. Named locales are considered equal if their names are equal. Unnamed locales are considered equal if they are copies of each other.

      The!= operator issynthesized fromoperator==.

      (since C++20)

      Contents

      [edit]Parameters

      other - astd::locale object to compare

      [edit]Return value

      1)true ifother is a copy of*this or has an identical name,false otherwise.
      2)false ifother is a copy of*this or has an identical name,true otherwise.

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      constructs a new locale
      (public member function)[edit]
      returns the name of the locale or"*" if unnamed
      (public member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/locale/locale/operator_cmp&oldid=177155"

      [8]ページ先頭

      ©2009-2026 Movatter.jp