fork download
  1. #include <iostream>
  2. #include <typeinfo>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. using intref = int&;
  8. int i;
  9. intref int_ref = i;
  10. intref& int_ref_ref = int_ref;
  11.  
  12. cout << typeid(i).name() << '\t' << typeid(int_ref_ref).name() << endl;
  13. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
i	i