Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 370 Bytes

File metadata and controls

11 lines (8 loc) · 370 Bytes

Remove reference

Back{: .button}

If variable is of type T then return T, else if it a reference then return the actual type

  std::cout << std::is_same(int, std::remove_reference<int>::type)
  std::cout << std::is_same(int, std::remove_reference<int &>::type)
  std::cout << std::is_same(int, std::remove_reference<int &&>::type)