Constrained genericity: Difference between revisions

→‎{{header|C++}}: Concepts no longer in C++0x
(J)
(→‎{{header|C++}}: Concepts no longer in C++0x)
Line 83:
 
=={{header|C++}}==
{{incorrect||Concepts have been removed from C++0x, but might appear in some future version. Should the C++ entry for this task be completely removed? Or should we just put a notice in front of it? --}}
 
The current C++ standard doesn't support constrained genericity (however you can emulate it by having the container refer to the corresponding eat function without actually calling it). The next version will, however, allow it through concepts:
<lang cpp>#include <concepts>
Anonymous user