People with type 2 diabetes, heart disease or stroke who sleep well have better cognitive function and greater brain volume than people with the same conditions who sleep poorly, according to a new study from Karolinska Institutet.