Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::copyable_function::operator bool

      From cppreference.com
      <cpp‎ |utility‎ |functional‎ |copyable function
       
       
      Utilities library
       
      Function objects
      Function invocation
      (C++17)(C++23)
      Identity function object
      (C++20)
      Old binders and adaptors
      (until C++17*)
      (until C++17*)
      (until C++17*)
      (until C++17*)  
      (until C++17*)
      (until C++17*)(until C++17*)(until C++17*)(until C++17*)
      (until C++20*)
      (until C++20*)
      (until C++17*)(until C++17*)
      (until C++17*)(until C++17*)

      (until C++17*)
      (until C++17*)(until C++17*)(until C++17*)(until C++17*)
      (until C++20*)
      (until C++20*)
       
       
      explicit operatorbool()constnoexcept;
      (since C++26)

      Checks whether*this stores a callable target, i.e. is not empty.

      Contents

      [edit]Parameters

      (none)

      [edit]Return value

      true if*this stores a callable target,false otherwise.

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      (C++26)
      compares astd::copyable_function withnullptr
      (function)[edit]
      checks if a target is contained
      (public member function ofstd::function<R(Args...)>)[edit]
      checks if thestd::move_only_function has a target
      (public member function ofstd::move_only_function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/utility/functional/copyable_function/operator_bool&oldid=175565"

      [8]ページ先頭

      ©2009-2025 Movatter.jp