Template Struct detector

Struct Documentation

template<class TFailType, class AlwaysVoid, template<class...> class TFuncDecltype, class ...Args>
struct detector

If the specified function TFuncDecltype taking the specified Args is not well formed, then SFINAE and partial template specialization will select this template, indicating unsuccessful detection.

If the specified function TFuncDecltype taking the specified Args is well formed, then SFINAE and partial template specialization will select this template, indicating successful detection.

Template Parameters:
  • TFailType – The default type to select upon unsuccessful detection.

  • TFuncDecltype – The decltype() of the function to detect.

  • Args – The types of the arguments to the function to detect.

  • TFailType – The default type to select upon unsuccessful detection. Unused in this version of the detector.

  • TFuncDecltype – The decltype() of the function to detect.

  • Args – The types of the arguments to the function to detect.

Public Types

using type = TFailType

Captures TFailType for future use.

using value = std::false_type

Always FALSE for unsuccessful detection.