[llvm] [ADT] Add std::string_view conversion to SmallString (PR #83397)

Jakub Kuderski via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 29 05:28:06 PST 2024


================
@@ -265,6 +265,11 @@ class SmallString : public SmallVector<char, InternalLen> {
   /// Implicit conversion to StringRef.
   operator StringRef() const { return str(); }
 
+  /// Implicit conversion to std::string_view
----------------
kuhar wrote:

nit
```suggestion
  /// Implicit conversion to std::string_view.
```

https://github.com/llvm/llvm-project/pull/83397


More information about the llvm-commits mailing list