~/talk

Simple, Extensible Pattern Matching in C++14

Talkat CppCon 2015 · 2015-09-21..09-25· [compilers-and-language-design]
links:none on file
slides:none on file

Implements a header-only pattern matching library for C++14 that compiles on GCC 5, Clang 3.6 and Visual C++ 2015 and uses integer_sequence, generic lambdas, and return type deduction to keep code minimal. It matches scalars, tuples, pointers, unique/shared/raw pointers, boost::optional/variant/any and user types via a simple tuple adapter, supports recursive variants and exhaustive-match checks, and focuses on clarity over micro-optimizations; examples include a fizzbuzz and an expression evaluator that compile and run. no macros, easy customization

AI-written summary · about

  1. 0:00Start
  2. 1:18Goals
  3. 1:40What Is Pattern Matching
  4. 2:12How Well Does C + + 14 Support Pattern Matching
  5. 4:32Pattern Library
  6. 8:25Building Blocks
  7. 18:40Placeholders
  8. 20:10Compound Types
  9. 20:43Fizzbuzz
  10. 26:49Pointers
  11. 34:19Integrating with the Boost Libraries
  12. 36:47Boost Variant
  13. 38:02Boost Variant Example
  14. 40:30Exhaustive Pattern
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.