Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::set_unexpected

      From cppreference.com
      <cpp‎ |error
       
       
      Diagnostics library
       
      Defined in header<exception>
      (until C++11)
      (deprecated in C++11)
      (removed in C++17)

      Makesf the new globalstd::unexpected_handler and returns the previously installedstd::unexpected_handler.

      This function is thread-safe. Every call tostd::set_unexpectedsynchronizes-with (seestd::memory_order) the subsequent calls tostd::set_unexpected andstd::get_unexpected

      (since C++11)

      [edit]Parameters

      f - pointer to function of typestd::unexpected_handler, or null pointer

      [edit]Return value

      The previously-installed unexpected handler, or a null pointer value if none was installed.

      [edit]See also

      (deprecated in C++11)(removed in C++17)
      function called when dynamic exception specification is violated
      (function)[edit]
      (deprecated in C++11)(removed in C++17)
      obtains the currentunexpected_handler
      (function)[edit]
      (deprecated in C++11)(removed in C++17)
      the type of the function called bystd::unexpected
      (typedef)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/error/set_unexpected&oldid=175324"

      [8]ページ先頭

      ©2009-2025 Movatter.jp