Tuesday, June 07, 2005

Policy-Based Design in C++

I've just recently found an excellent article about Policy-Based Design in C++ by Andrei Alexandrescu.

Quoting from the article:
In brief, policy-based class design fosters assembling a class with complex behavior out of many little classes (called policies), each of which takes care of only one behavioral or structural aspect. As the name suggests, a policy establishes an interface pertaining to a specific issue. You can implement policies in various ways as long as you respect the policy interface.

Very interesting stuff, worth giving it a try.

 

Labels:

2 Comments:

Post a Comment

Links to this post:

Create a Link

<< Back to Main Page