fork download
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. template <class T, class F>
  5. struct d
  6. {
  7. using foo = std::pair<T, F>;
  8. };
  9.  
  10.  
  11. int main()
  12. {
  13. d<int, double>::foo x = std::make_pair(5, 5.3);
  14. std::cout << x.first << ' ' << x.second;
  15. }
  16.  
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
5 5.3