c++ - Could following code be considered strategy pattern? -


could following code snippet considered strategy pattern? or else? or no pattern @ all?

template <bool bigendian> void load(char * buf);  template <> int load<false>(char * buf) { ... }  template <> int load<true>(char * buf) { ... }  template <bool bigendian> class loader {     ...         // somewhere in code         int = load<bigendian>(buf);     ... } 


Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -