Boost provides two different implementations of string_view
, which will be a part of C++17:
boost::string_ref
in utility/string_ref
According to this email from the boost mailing list, boost::string_ref won't be used in the future and is being replaced by string_view in other boost libraries.
boost::string_view has the following advantages: