Since the authors of preceding answers seem to have gotten away with presenting notation as they (individually) like it, allow me to present notation I like instead: I'm used to denoting the relation between domain and codomain as
$ \large \unicode{x1f814} \hspace{-0.3em} \unicode{x1f816} $ for bijections, i.e. for functions which are both injective and surjective; and
$ \large \! \style{display: inline-block; transform: translateY(-1px)}{\unicode{xFF0D}} \hspace{-0.8em} \style{display: inline-block; transform: translateY(-1px)}{\unicode{xFF0D}} \hspace{-0.5em} \unicode{x1f816} $ for injections which are not bijections, i.e. which are not surjective as well.
(Since other answers seem to attach different meaning to arrows pointing only in the one direction from domain to codomain, I've tried to draw my arrows consistently in a separate style.)
For functions which are in general "many-to-one" relations (and thus not injective) I'd symbolize the relation between domain and codomain correspondingly as
$ \large \unicode{5171} \hspace{-0.2em} \unicode{x1f816} {\hspace{-2.em} \style{display: inline-block; transform: rotate(153deg) translateY(-6px)}{\unicode{x1f816}}} {\hspace{-2.em} \style{display: inline-block; transform: rotate(-153deg) translateY(4px)}{\unicode{x1f816}}} $ for surjective (and not injective) functions; and
$ \large \unicode{5171} \hspace{-0.3em} \unicode{x1f816} $ for functions which are neither surjective, nor injective.
Readily added can be symbols for relating domain and codomain of maps which are in general "one-to-many", and which are therefore not functions at all:
$ \large \unicode{x1f814} \hspace{-0.2em} \unicode{5176} {\hspace{-0.5em} \style{display: inline-block; transform: rotate(-27deg) translateY(-6px)}{\unicode{x1f816}}} {\hspace{-1.em} \style{display: inline-block; transform: rotate(27deg) translateY(5px)}{\unicode{x1f816}}}$ if the mapping is to each element of the codomain, or
$ \large \! \style{display: inline-block; transform: translateY(-1px)}{\unicode{xFF0D}} \hspace{-0.75em} \style{display: inline-block; transform: translateY(-1px)}{\unicode{xFF0D}} \hspace{-0.4em} \unicode{5176} {\hspace{-0.5em} \style{display: inline-block; transform: rotate(-27deg) translateY(-6px)}{\unicode{x1f816}}} {\hspace{-1.em} \style{display: inline-block; transform: rotate(27deg) translateY(5px)}{\unicode{x1f816}}}$ otherwise.