¡@

Home 

c++ Programming Glossary: cross_product

How can I get a specialized template to use the unspecialized version of a member function?

http://stackoverflow.com/questions/347096/how-can-i-get-a-specialized-template-to-use-the-unspecialized-version-of-a-membe

int dim struct vec vec normalize template struct vec 3 vec cross_product const vec second vec normalize template int dim vec dim vec.. the function undefined for everything except dim 3 vec cross_product const vec second vec normalize template vec 3 vec 3 cross_product.. const vec second vec normalize template vec 3 vec 3 cross_product const vec second ... template int dim vec dim vec dim normalize..

How to create the Cartesian product of a type list?

http://stackoverflow.com/questions/9122028/how-to-create-the-cartesian-product-of-a-type-list

type_pair T Rest ... type template typename... T struct cross_product typedef type_list typename row T T... type... type int main.. typename row T T... type... type int main int s typedef cross_product int float short type result std cout abi __cxa_demangle typeid.. 0 0 s std endl return 0 This program outputs g std c 0x cross_product.cpp . a.out type_list type_list type_pair int int type_pair..