On the contrary, cognitive impairment is common in autism. You're probably thinking of attention deficit disorder which paradoxically may present with hyperattention, usually when something is very interesting to the patient.
There is a broad spectrum of symptoms which fall under the autism spectrum. Everyone who has ASD, has a number of these symptoms but two people who both have ASD can easily have none of these symptoms in common.