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

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -