The second const is spurious.  Function might as well be <code> const char* RvalContainerPrimitiveAsString(...);</code>
Calling code is entirely at liberty to use the extra const, <code> const char* const result = RvalContainerPrimitiveAsString(...); </code> announces an intent to not assign to result hereafter (which is what the second const says).