-3
   template <class T> const T& min (const T& a, const T& b);

1)variable 'a' is address to constant class 'T';

2)variable 'b' is address to constant class 'T';

are these statements 1 and 2 true?

  • 7
    Any [good C++ book](https://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list) should explain what *reference* is (and the difference between `&` operator in different contexts). – Yksisarvinen Feb 26 '21 at 15:44
  • Is there an option #4 ? – drescherjm Feb 26 '21 at 15:48

1 Answers1

0

Both a and b are constant reference to instance of T.

Ivaylo Strandjev
  • 69,226
  • 18
  • 123
  • 176