3 ms·
If you're looking for a high-level example, the Wikipedia article one where a function is constrained to only accept an argument which implements operators "=="
by favorited 7y ago
If you're looking for a high-level example, the Wikipedia article one where a function is constrained to only accept an argument which implements operators "==" and "!=".
https://en.wikipedia.org/wiki/Concepts_(C%2B%2B) https://en.wikipedia.org/wiki/Concepts_(C%2B%2B)