But what is a continuous function?
Mathematicians (but not all calculus books) mean "continuous at every point of its domain" when they say a function is "continuous." The functions $f(x) = 1/x$ and $f(x)=\ln x$ are continuous functions.
"Continuous" is not, in and of itself, a property of a function. You have to talk about being continuous at a given point, or on a collection of points as you have above.
It is generally safe to assume that if somebody leaves off the set, they intend to say that the function is continuous on its domain (as both of your examples are); but, I tend to believe that explicit is better than implicit.