std:: unexpect_t, std:: unexpect
From cppreference.net
C++
Utilities library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::expected
| Member functions | ||||
| Observers | ||||
| Monadic operations | ||||
| Modifiers | ||||
| Non-member functions | ||||
| Helper classes | ||||
|
unexpect_t
unexpect
|
|
헤더에 정의됨
<expected>
|
||
|
struct
unexpect_t
{
explicit
unexpect_t
(
)
=
default
;
}
;
|
(1) | (C++23부터) |
|
inline
constexpr
std
::
unexpect_t
unexpect
{
}
;
|
(2) | (C++23부터) |
1)
std::expected
객체에서 예상치 못한 값을 제자리에서 생성하기 위한 태그 유형입니다.
2)
const
std
::
unexpect_t
타입의 상수로, 일반적으로
std::expected
생성자에 직접 전달되어 예상치 못한 값을 생성하는 데 사용됩니다.
참고 사항
다른 생성 태그 유형과 마찬가지로,
unexpect_t
는 명시적 기본 생성자를 가진 사소하고 빈 클래스입니다.
참고 항목
expected
객체를 생성합니다
(public member function) |
|
|
인-플레이스 생성 태그
(tag) |