sue of </em><a
href="http://www.ddj.com"><em>Dr Dobb's Journal</em></a></p>

<p>Generic programming (writing code which works with any data
type meeting a set of requirements) has become the method of
choice for providing reusable code. However, there are times in
generic programming when &quot;generic&quot; just isn't good
enough - sometimes the differences between types are too large
for an efficient generic implementation. This is when the traits
technique becomes important - by encapsulating those prope