书在4年前看过,今天重温一下:
一直认为这是最好的设计模式,大牛Andrei Alexandrescu 专门写了书,可见他的重要性
http://en.wikipedia.org/wiki/Policy-based_design
#include <iostream>
#include <string>
template <typename OutputPolicy, typename LanguagePolicy>
class Hello
书在4年前看过,今天重温一下:
一直认为这是最好的设计模式,大牛Andrei Alexandrescu 专门写了书,可见他的重要性
http://en.wikipedia.org/wiki/Policy-based_design
#include <iostream>
#include <string>
template <typename OutputPolicy, typename LanguagePolicy>
class Hello