Cognitive function refers to various mental abilities, including learning, thinking, reasoning, remembering, problem-solving, decision-making, and attention. In the context of cancer, these functions can be significantly impacted by both the disease and its treatments.