- Examples
Explore examples demonstrating high performance techniques in embedded C++ programming. Learn how operator overloading, static polymorphism, and the CRTP idiom enable efficient and safe comparisons, method dispatching, and default implementations. Understand these concepts to optimize embedded systems dealing with critical requirements.
We'll cover the following...
We'll cover the following...
Example 1
Explanation
-
For the classes
AppleandMan, we implemented the smaller operator (lines 28 and 37). We will only use the classManfor simplicity. The classManis public derived (lines 32 - 35) from the classEquality<Man>. -
For classes of the kind
Equality<Derived>, we implemented ...