Top "Policy-based-design" questions

Policy based design and best practices - C++

struct InkPen { void Write() { this->WriteImplementation(); } void WriteImplementation() { std::cout << "Writing using a inkpen" << std::…

c++ design-patterns policy-injection policy-based-design
What is the difference between a trait and a policy?

I have a class whose behavior I am trying to configure. template<int ModeT, bool IsAsync, bool IsReentrant> …

c++ template-meta-programming typetraits policy-based-design