2014-08-18から1日間の記事一覧
[sourcecode language="cpp"] template <typename ValueType> struct funcPtr { typedef ValueType (*func)(const ValueType, const ValueType); }; template <typename ValueType> ValueType add( const ValueType a, const ValueType b ) { return a+b; } template <typename ValueType> ValueType sub( const ValueType</typename></typename></typename>…