Understanding C++ Expression Templates - Angelika Langer
Understanding C++ Expression Templates - Angelika Langer
Understanding C++ Expression Templates - Angelika Langer
- No tags were found...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
39The Strategy PatternContextStrategy* sContextInterface()StrategyStrategyInterface()s->StrategyInterface()ConcreteStrategyStrategyInterface()ConcreteStrategyStrategyInterface()© Copyright 1995-2000 by <strong>Angelika</strong> <strong>Langer</strong>. All Rights Reserved.http://www.<strong>Angelika</strong><strong>Langer</strong>.com(78)last update: 11/7/2005 ,21:37An Example - Sorting of StringsContext:– a class or function that sorts strings, or– a sorted collectionStrategy:– ASCII sorting order– case-insensitive sorting order– culture-sensitive, dictionary sorting order© Copyright 1995-2000 by <strong>Angelika</strong> <strong>Langer</strong>. All Rights Reserved.http://www.<strong>Angelika</strong><strong>Langer</strong>.com(79)last update: 11/7/2005 ,21:37