~/talk

“Type Traits - what are they and why should I use them?"

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

Defines type traits as compile-time templates that return type info and shows concrete examples: is_floating_point and rank (array dimensionality), remove_const/_t aliases, and iterator_traits with five nested typedefs. Demonstrates SFINAE via enable_if to restrict overloads, walks through overload resolution outcomes, and explains vector push_back optimizations using noexcept(move) checks and trivially_copyable fast memcpy path. Mentions real pitfalls, performance tradeoffs, and sources for deeper reading.

AI-written summary · about

  1. 0:00Introduction to Type Traits
  2. 1:14Why Use Type Traits
  3. 3:21Taxonomy of C++ Types
  4. 8:09Understanding Type Traits
  5. 13:17Type Traits in Algorithms
  6. 18:39Restricting Templates with SFINAE
  7. 31:23Optimization with Type Traits
  8. 40:48Q&A and Further Learning
~/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.