Continuous Extension from Dense Subset

Theorem
Let $X$ be a metric space.

Let $D$ be a dense subset of $X$.

Let $f : D \to \R$ be a uniformly continuous mapping.

Then there exists a unique continuous extension of $f$ to $X$.