Главная
Study mode:
on
1
Intro
2
Background
3
Disclaimer
4
The Pitch
5
Composability is a GOOD THING
6
How can I tell if my type is composite?
7
Example Numeric Types
8
Telltale Sign #1
9
Telltale Sign #2
10
Writing Transparent Operators
11
Friendly Advice
12
The Prime Directive
13
Telltale Sign #3
14
safe_elastic_integer
15
precise_safe_elastic_fixed_poi
16
fixed_point + elastic_integer
17
The Small Print
18
numeric_traits
Description:
Explore the potential of composite arithmetic types in C++ through this conference talk from C++Now 2017. Delve into the challenges faced by C++'s arithmetic types in fields like heterogeneous computing and information security. Learn how modern language features can be leveraged to upgrade and enhance numeric types. Discover the compositional approach to building custom numeric types, resulting in a variety of efficient abstractions. Examine how features such as type deduction, compile-time evaluation, and user-defined literals can create arithmetic types that are faster, safer, and more user-friendly. Gain insights from John McFarlane's fixed-point library and his experience in standardizing fixed-point arithmetic. Understand key concepts like composability, transparent operators, and numeric traits, and their application in creating advanced arithmetic types such as safe_elastic_integer and precise_safe_elastic_fixed_point.

Composite Arithmetic Types Are Greater Than the Sum of Their Parts

CppNow
Add to list
0:00 / 0:00