Although it seems to be that the younger generation were more likely to vote to stay in and the older generation were more likely to vote to leave, it certainly wasn't a hard and fast rule. As with all these generalisations, their purpose appears mainly to be to stir up bad feeling between one group and another.
Looking around my own family and friends, I voted to remain, my husband voted to leave, my son and his partner voted to remain, my daughter and her son didn't think either side represented what they believe in and so didn't vote, one of my friends voted Remain, her husband voted leave, another friend and her husband both voted Remain, their son voted Leave (to "get rid of all the foreigners taking our jobs". (in his 40's, he has hardly worked at all and when he was admitted to hospital recently, my friend pointed out that most of the people looking after him were "foreigners"), my friend, her husband and family in Sunderland (where 60% voted to leave) all voted to remain. It's ridiculous to blame one group or another for any outcome because everybody is different and not everybody conforms to a particular trend.
Also, whilst younger people have benefited from certain things that older people haven't, the converse is also true.
I'm fed up with all the divisiveness that has been created over the last few years - about age, race, employment status, religion, class, etc. etc. In my view, one of the most important ways in which governments can persuade people to accept, and even champion, policies that entrench inequality and injustice is to get them fighting against each other.