StringRefs are POD-like.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 26 Nov 2010 14:36:54 +0000 (14:36 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 26 Nov 2010 14:36:54 +0000 (14:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120181 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/StringRef.h

index 75ebaf54881f63f0af4f52616fa8497dff7d954b..364ace7e1d0397b70a60ec5d6768b96636347dd1 100644 (file)
@@ -437,6 +437,10 @@ namespace llvm {
 
   /// @}
 
+  // StringRefs can be treated like a POD type.
+  template <typename T> struct isPodLike;
+  template <> struct isPodLike<StringRef> { static const bool value = true; };
+
 }
 
 #endif