fork download
  1. #include<typeinfo>
  2. #include<string>
  3. #include<vector>
  4. #include<cstdio>
  5.  
  6. #define T(x) printf("%s: %p\n", #x, &typeid(x));
  7.  
  8. int main (int argc, char** argv) {
  9. T(std::string)
  10. T(std::vector<int>)
  11. T(int)
  12. T(double)
  13. return 0;
  14. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
std::string: 0x8048708
std::vector<int>: 0x8048724
int: 0x8049998
double: 0x8049960