lrita opened a new pull request, #2141: URL: https://github.com/apache/brpc/pull/2141
### What problem does this PR solve? add type BasicStringPiece::const_pointer, make it like [string_view](https://en.cppreference.com/w/cpp/string/basic_string_view) and more convenient. e.g. we can using butil::StringPiece as a key to invoking folly::F14FastMap [heterogeneous accessing method](https://github.com/facebook/folly/blob/main/folly/container/HeterogeneousAccess.h#L158-L183) by this mr make butil::StringPiece like string_view which can implicitly convert to [folly::StringPiece](https://github.com/facebook/folly/blob/main/folly/Range.h#L278-L333) ### What is changed and the side effects? Changed: Side effects: - Performance effects(性能影响): none - Breaking backward compatibility(向后兼容性): none --- -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
