Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      operator==(std::text_encoding)

      From cppreference.com
      <cpp‎ |text‎ |text encoding
       
       
       
       
      friendconstexprbool operator==(const text_encoding& a,
                                       const text_encoding& b)noexcept;
      (1)(since C++26)
      friendconstexprbool operator==(const text_encoding& a, id i)noexcept;
      (2)(since C++26)

      Performs comparison operations ontext_encoding objects.

      1) Compares twotext_encoding objects. The objects compare equal if and only ifcomp-name (a.name(), b.name()) istrue when botha.mib() andb.mib() are equal toid::other, ora.mib() is equal tob.mib().
      2) Comparetext_encoding object with a MIBenum value. The objects compare equal if and only ifa.mib() is equal toi.

      These functions are not visible to ordinaryunqualified orqualified lookup, and can only be found byargument-dependent lookup whenstd::text_encoding is an associated class of the arguments.

      The!= operator issynthesized fromoperator==.

      Contents

      [edit]Parameters

      a, b -text_encoding objects to compare
      i -id value to compare with the MIBenum value contained ina

      [edit]Return value

      1)a.mib()== id::other&& b.mib()== id::other
          ? comp-name (a.name(), b.name())
          : a.mib()== b.mib()
      .
      2)a.mib()== i.

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      (removed in C++20)
      equality comparison between locale objects
      (public member function ofstd::locale)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/text/text_encoding/operator_eq&oldid=179269"

      [8]ページ先頭

      ©2009-2025 Movatter.jp