Exercise: CRTP Add Class
Explore how to implement a Person class featuring first and last names, then create objects to compare them lexicographically using relational operators. Learn to apply the Curiously Recurring Template Pattern (CRTP) to manage such comparisons efficiently in C++.
We'll cover the following...
We'll cover the following...
Problem statement
We saw the code of the comparison operator in the previous lesson. ...