Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::bad_exception::bad_exception

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

      Constructs newbad_exception object.

      1) Default constructor.what() returns an implementation-defined string.
      2) Copy constructor. Initializes the object with the contents ofother. If*this andother both have dynamic typestd::bad_exception thenstd::strcmp(what(), other.what())==0(since C++11).

      [edit]Parameters

      other -bad_exception object to initialize with
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/error/bad_exception/bad_exception&oldid=177848"

      [8]ページ先頭

      ©2009-2025 Movatter.jp