What is a candidate function? What is a viable function
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:6| Question number:49
All Answers
total answers (1)
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:6| Question number:49
total answers (1)
A **candidate function** is a function with the same name as the called function and for which a declaration is visible at the point of the call.
A **viable function** is a candidate function with the same number of parameters as there are arguments in the call, and the type of each argument must match or be convertible to the type of its corresponding parameter.