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
Post a Comment