templates - C++ order of type modifiers -



templates - C++ order of type modifiers -

in c++ have template functions. example:

template<class a,class b> void something(a a, b b){ //do }

how compiler guess modifiers of types , b? a, a&, const a& etc... criteria uses pick type modifiers? specified standard?

yes standard has rather complex rules on type deduction. far long quote here, knowing behaviour specified exactly c++ plenty satisfy you. note rules pretty much same auto.

c++ templates

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -