Add some more patterns in cpp