Namespaces
Variants

std::bad_exception::bad_exception

cppreference.net에서
 
 
유틸리티 라이브러리
일반 유틸리티
관계 연산자 (C++20에서 폐지됨)
정수 비교 함수
(C++20)(C++20)(C++20)    
(C++20)
스왑 및 타입 연산
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
공통 어휘 타입
(C++11)
(C++17)
(C++17)
(C++17)
(C++11)
(C++17)
(C++23)



 
 
 
bad_exception() throw();
(1) (C++11까지)
bad_exception() noexcept;
(C++11부터)
(C++26부터 constexpr)
bad_exception( const bad_exception& other ) throw();
(2) (C++11까지)
bad_exception( const bad_exception& other ) noexcept;
(C++11부터)
(C++26부터 constexpr)

새 bad_exception 객체를 생성합니다.

1) 기본 생성자. what()는 구현 정의 문자열을 반환합니다.
2) 복사 생성자. other의 내용으로 객체를 초기화합니다. *this와 other 모두 동적 타입이 std::bad_exception이면 std::strcmp(what(), other.what()) == 0(C++11부터)입니다.

매개변수

other - bad_exception 초기화할 객체