C++: Difference between NVI and Template Method Patterns? -


what difference between nvi ( non-virtual interface ) , template method patterns?

they seem similar , i've read both they're same , they're subtly different template being somehow more general.

nvi idiom, template method pattern. nvi implementation of template method pattern using dynamic dispatch in c++; possible create template methods in c++ using template metaprogramming eliminate dynamic dispatch.

a pattern more general idiom, , languages may use different idioms implement pattern.


Comments

Popular posts from this blog

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -