Is it possible to write a generic arithmetic function in C++?

后端 未结 0 413
悲&欢浪女
悲&欢浪女 2020-12-10 11:31

I\'d like to write a set of generic arithmetic functions that can act on any type that passes the is_arithmetic test. For example, this min function is ok:

t         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题