Let and be topological spaces. The set (often denoted also ) of continuous maps from to has a natural topology called the compact-open topology: a basis of that topology consists of sets of the form , where is compact and is open?, which consists of all continuous maps such that .
For the special case of the function spaces (that is when is the real line or complex plane) where the domain is a metric space, the compact-open topology is also known as the topology of uniform convergence on compact subsets, or if the domain is also compact, as the topology of uniform convergence.
The compact-open topology is most sensible when the topology of is locally compact Hausdorff, for in this case with the compact-open topology is an exponential object in the category of all topological spaces. This implies that we have an exponential law for spaces whenever is locally compact Hausdorff. See also convenient category of topological spaces.