Participants with type 1 vs type 2 diabetes mellitus and without diabetes may have a higher risk for incident dementia.