Skip to main content

Practice · 1 of 2

Write the Missing Deduction Guide

CHALLENGE
Difficulty: advanced+25 XP

Box's iterator-pair constructor deduces the iterator type by default — Box<int*> instead of Box<int>. Write the deduction guide that steers CTAD to the element type.

Back to lesson: Practice: CTAD in Anger