detected_t

Synopsis

Declared in <folly/Traits.h>

template<
    template<typename...> typename T,
    typename... A>
using detected_t = detected_or_t<nonesuch, T, A...>;

Description

A trait type alias which results in T[ if substitution would succeed] and in nonesuch otherwise.

Equivalent to detected_or_t<nonesuch, T, A...>.

mimic: std::experimental::detected_t, Library Fundamentals TS v2

Note: not resilient against incomplete types; may violate ODR.

Created with MrDocs