Associated article: Implementing Abstract Factory as an STL Container
Published source code accompanying the article by Jason Shankel in which he implements the Abstract Factory pattern using C++ and the Standard Template Library. The Abstract Factory design pattern provides an abstract interface for object creation. This allows applications to select object implementation at run time. Also see AFSTL.ZIP.
Implementing Abstract Factory as an STL Container by Jason Shankel Example 1: set<int,less<int> > myIntSet; for (int val=0;val<10;val++) myIntSet.insert(val); for (set<int,less<int> >::iterator it = ...