![]() |
The STL is really neat
http://www.sgi.com/tech/stl/table_of_contents.html
I don't know why I never realized it before, but the STL is really, really neat. The STL idea of concepts combined with boost::concept_traits allows you to check that template parameters pass certain requirements. Example: :
#include <iostream>If I've done that right, it will only compile if the type of iterator passed to the display() function complies by the Input Iterator concept defined by the STL. Here's another example: :
template <typename Integer>C++ continues to astound me with what it's capable of. :eek: |
Quote:
http://www.open-std.org/jtc1/sc22/wg...2005/n1758.pdf |
| All times are GMT -5. The time now is 3:02 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC