fork download
  1. #include <iostream>
  2. #include <array>
  3. #include <typeinfo>
  4.  
  5. int main()
  6. {
  7. std::array<int, 10> x;
  8. auto it = x.begin();
  9. std::cout << ( typeid(it) == typeid (int*) );
  10. }
  11.  
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
1