title: Checking real variable type in polymorphism (C++)
body: <p>Suppose we have a class A and class B and C inherit from it. 
  Then we create an array of references to A's, and fill it with B's and C's. 
  Now we decided that we want to eliminate all the C's. Is there a way to check what type each field of the array really holds without doing something redundant like a returnType() function? </p>
  
  <p>Edit: fixed "array of A's" to "array of references to A's". </p>