Suppose I need to call a function foo that takes a const std::string reference from a great number of places in my code:
foo
std::string
int foo(const
If you can use boost 1.55 or greater you can do
#include void foo(const boost::string_ref& xyz) { }