¡@

Home 

c++ Programming Glossary: expensivetype

How do I invoke a non-default constructor for each inherited type from a type list?

http://stackoverflow.com/questions/1671297/how-do-i-invoke-a-non-default-constructor-for-each-inherited-type-from-a-type-li

_1 _2 type public Host m_expensiveType ... private const ExpensiveType m_expensiveType The Host class knows how to create an instance.. The Host class knows how to create an instance of ExpensiveType which is a costly operation and each policy class exposes functionality.. sample policy. struct SamplePolicy SamplePolicy const ExpensiveType expensiveType m_expensiveType expensiveType void DoSomething..