mrdocs::Unexpected

Construct an unexpected (error) value, as passed to Expected.

Synopsis

using polyfill::Unexpected;

Description

Re‐exported from polyfill (defined there) so that Unexpected(e) deduces the error type on every supported compiler. Alias‐template CTAD (P1814) is not implemented everywhere (e.g. Clang 18), which would otherwise reject the deduced form at hundreds of call sites.

Introduced Symbols

Name

Description

Unexpected

Construct an unexpected value, deducing the error type.

Created with MrDocs