Pregnancy and breastfeeding are associated with stronger long-term cognitive ability among postmenopausal women.