~/talk

Designing Value Classes for Modern C++

Talkat Meeting C++ 2014 · 2014-12-05..12-06· [typescript]
name:Mark Mutz
links:none on file
slides:none on file

Covers principles for designing value classes in modern C++, discussing how to implement safe, efficient value semantics using C++11/14 features such as move semantics, constexpr, and noexcept. Explains trade-offs in copy vs. move, resource management, and API design to make value types predictable and performant.

AI-written summary · about

  1. 0:00Start
  2. 0:28Types of Classes
  3. 2:14What R Value Classes
  4. 6:24Handle Classes
  5. 7:35Polymorphic Classes
  6. 8:26Types of Value Classes
  7. 9:13Thin Abstractions and Thick Abstraction
  8. 11:41Thin Abstractions
  9. 13:23C++11 Features
  10. 15:12Literal Type
  11. 15:36Constructive Consecration Constructors
  12. 18:59Implicit Conversion
  13. 20:08Initializer List
  14. 21:26Move Semantics
  15. 23:43Standard Hash
  16. 24:22What Happens to the New Containers
  17. 27:42Questions
  18. 29:51Value Class Design
  19. 30:17Mark Them as Final
  20. 30:43Making the Type Immutable for all Value Classes
  21. 40:42Demo
  22. 43:38Creating Your Own Swap Function
  23. 54:23Provide User-Defined Inline Move Constructors and Assignment Operators
  24. 56:36Class Invariants
  25. 57:41Mixed Approach
  26. 58:49Library Versioning
~/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.