Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      synth-three-way,synth-three-way-result

      From cppreference.com
      <cpp‎ |standard library
       
       
      Standard library
      Customization point object(C++20)
      Exposition-only entities
      (C++11)
      synth-three-waysynth-three-way-result
      (C++20)(C++20)
       
      constexprauto synth-three-way=/* see below */;
      (1)(since C++20)
      (exposition only*)
      template<class T,class U= T>

      using synth-three-way-result=

          decltype(synth-three-way(std::declval<T&>(),std::declval<U&>()));
      (2)(since C++20)
      (exposition only*)
      1) A function object whoseoperator() behaves as the synthesized three-way comparison function. Equivalent to:
      constexprauto synth-three-way=[]<class T,class U>(const T& t,const U& u)        requires requires{{ t< u}->boolean-testable;{ u< t}->boolean-testable;}{ifconstexpr(std::three_way_comparable_with<T, U>)return t<=> u;else{if(t< u)return std::weak_ordering::less;if(u< t)return std::weak_ordering::greater;return std::weak_ordering::equivalent;}};
      2) The return type of theoperator() of(1) (synth-three-way).

      [edit]Parameters

      t, u - the values to be compared

      [edit]Return value

      The compare result.

      [edit]See also

      (removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(C++20)
      lexicographically compares the values in thepair
      (function template)[edit]
      (removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(C++20)
      lexicographically compares the values in the tuple
      (function template)[edit]
      (C++11)(C++11)(removed in C++20)(C++11)(removed in C++20)(C++11)(removed in C++20)(C++11)(removed in C++20)(C++11)(removed in C++20)(C++20)
      lexicographically compares the values of twoarrays
      (function template)[edit]
      (removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(C++20)
      lexicographically compares the values of twodeques
      (function template)[edit]
      (C++11)(C++11)(removed in C++20)(C++11)(removed in C++20)(C++11)(removed in C++20)(C++11)(removed in C++20)(C++11)(removed in C++20)(C++20)
      lexicographically compares the values of twoforward_lists
      (function template)[edit]
      (removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(C++20)
      lexicographically compares the values of twolists
      (function template)[edit]
      (removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(C++20)
      lexicographically compares the values of twovectors
      (function template)[edit]
      (removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(C++20)
      lexicographically compares the values of twomaps
      (function template)[edit]
      (removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(C++20)
      lexicographically compares the values of twomultimaps
      (function template)[edit]
      (removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(C++20)
      lexicographically compares the values of twosets
      (function template)[edit]
      (removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(C++20)
      lexicographically compares the values of twomultisets
      (function template)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/standard_library/synth-three-way&oldid=156904"

      [8]ページ先頭

      ©2009-2025 Movatter.jp