You can specify aliasing explicitly with the restrict keyword. It&#x27;s used in cases where you have two pointers of the same type that are otherwise allowed to alias each other. For pointers of different types it doesn&#x27;t make much sense and shouldn&#x27;t be required, there is just no valid reason, except trying to be a smart ass, for two pointers of different types to alias each other, for generic containers you can use void pointers.