I am writing a library, all classes of which are in one namespace. I need to define a utility function that will be called only by the classes of my library and will never be called outside of it. But at the same time I can not put it in anonymous namespace or mark it as static
because its calling classes are in different translation units.
In general, an analogue of C # internal
sought, but for C ++. What do you advise?
I am also ready to listen to criticism of the justification of such a cover-up as a whole. For the service function cannot violate the integrity of any class and its concealment is rather a matter of good style.