Posts

Showing posts from February, 2024

Overloading same function signature

  # include <iostream> template < typename T> void foo (T...) { std :: cout << 'A' ;} template < typename ... T> void foo (T...) { std :: cout << 'B' ;} int main () { foo( 1 ); foo( 1 , 2 ); }