Say I have a function, $g:\mathbb{R} \mapsto \mathbb{R}$. Then would the set $O(g)$ be defined (as explicitly as possible) as: $$O(g) = \{ f:\mathbb{R} \mapsto \mathbb{R} \space|\space \exists C \in \mathbb{R}^{+}:\exists n_{0} \in \mathbb{R}: \forall n>n_{0}:|f(n)|\leq C\cdot|g(n)|\}$$
That is, do all the functions in $O(g)$ need to be the same 'type' of function as $g$, i.e. do all $f$ in $O(g)$ necessarily have to map from $\mathbb{R} \mapsto \mathbb{R}$ as well?