Probably a conceptual mistake from my part but let's say I have a function which takes a char * as a parameter; that is, a C-style string. But I want to make sure that char * is pointing to something. So could I use something like:
foo(const char * const &cstring) to specify that I'm expecting cstring to be a const reference to a const char *? This way I wouldnt need to check for NULL pointers inside foo.
char *of any kind, define a function that takes a reference to astd::string.