|
|
Example of Policies with Templates |
I parameterize class Point with a 'policy for distance and comparison' In the real world it seems more reasonable to parameterize functions - rather than classes - with policies |
Below we parameterize individual functions with a policy |