Skip to content

type undefined

kwikius edited this page Jul 28, 2020 · 4 revisions

| Home | Concepts | Types |

Description

The undefined type is useful to represent invalid constructs. Conceptually:

template <typename T>
concept any = !std::is_same_v<T,undefined>;

An attempt to instantiate the type will result in an error.

Clone this wiki locally