Skip to content

Commit 02ec6ec

Browse files
committed
Update readme
1 parent 315b28c commit 02ec6ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ There are currently no plans to support [vcpkg](https://learn.microsoft.com/en-u
3636

3737
### Canonical usage example
3838

39+
Let's assume that we have a set of types representing different shapes.
40+
We can use a trait to model the behavior that all shapes have in common, such as calculating the area.
41+
This behavior can then be defined individually for each type and does not need to be part of the original type definition:
42+
3943
```c++
4044
#include <iostream>
4145
#include <numbers>

0 commit comments

Comments
 (0)