Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::bad_exception::operator=

      From cppreference.com
      <cpp‎ |error‎ |bad exception
       
       
      Utilities library
       
      Diagnostics library
       
       
      bad_exception& operator=(const bad_exception& other)throw();
      (until C++11)
      bad_exception& operator=(const bad_exception& other)noexcept;
      (since C++11)
      (constexpr since C++26)

      Assigns the contents ofother.If*this andother both have dynamic typestd::exception thenstd::strcmp(what(), other.what())==0 after assignment.(since C++11)

      [edit]Parameters

      other - anotherbad_exception object to assign

      [edit]Return value

      *this.

      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/error/bad_exception/operator%3D&oldid=177849"

      [8]ページ先頭

      ©2009-2025 Movatter.jp