Overview
Explore the Detection Idiom, a powerful method for distinguishing between types, in this 53-minute ACCU Conference talk by Marshall Clow. Learn how this lesser-known feature from the Library fundamentals Technical Specification simplifies SFINAE constraints and makes template meta-programming more accessible. Discover the origins, purpose, and implementation of the Detection Idiom through practical examples, including alligators and structs. Gain insights into the inner workings of the detector struct, instantiation, and the Detected type. Delve into variations like Detection exact and address common questions about this technique. A basic understanding of template meta-programming is recommended for this informative session that promises to streamline your type distinction processes.
Syllabus
Introduction
Outline
Metadetect
Where did it come from
What does it solve
Example
Alligators
structs
detector
struct detector
instantiate detector
DetectedT
Any other questions
How does it work
Variations
Detection exact
Detected
Taught by
ACCU Conference