Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      operator==,!=(std::experimental::function)

      From cppreference.com
      <cpp‎ |experimental‎ |function
       
       
       
       
       
      Defined in header<experimental/functional>
      template<class R,class...ArgTypes>

      bool operator==(conststd::experimental::function<R(ArgTypes...)>& f,

                       std::nullptr_t)noexcept;
      (1)(library fundamentals TS)
      template<class R,class...ArgTypes>

      bool operator==(std::nullptr_t,

                       conststd::experimental::function<R(ArgTypes...)>& f)noexcept;
      (2)(library fundamentals TS)
      (removed in library fundamentals TS v3)
      template<class R,class...ArgTypes>

      bool operator!=(conststd::experimental::function<R(ArgTypes...)>& f,

                       std::nullptr_t)noexcept;
      (3)(library fundamentals TS)
      (removed in library fundamentals TS v3)
      template<class R,class...ArgTypes>

      bool operator!=(std::nullptr_t,

                       conststd::experimental::function<R(ArgTypes...)>& f)noexcept;
      (4)(library fundamentals TS)
      (removed in library fundamentals TS v3)

      Compares astd::experimental::function with a null pointer. Empty functions (that is, functions without a callable target) compare equal, non-empty functions compare non-equal.

      The!= operator issynthesized fromoperator==.

      (library fundamentals TS v3)

      [edit]Parameters

      f -std::experimental::function to compare

      [edit]Return value

      1,2)!f
      3,4)(bool) f

      [edit] See also

      (removed in C++20)
      compares astd::function withnullptr
      (function template)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/experimental/function/operator_cmp&oldid=157725"

      [8]ページ先頭

      ©2009-2025 Movatter.jp