template<class T> constexpr bool is_space(const T & x) { return x == ' ' || x == '\n'; }
Yep.
Then again, inline does not mean what most people think.