[llvm-commits] [llvm] r120181 - /llvm/trunk/include/llvm/ADT/StringRef.h
Benjamin Kramer
benny.kra at googlemail.com
Fri Nov 26 06:36:54 PST 2010
Author: d0k
Date: Fri Nov 26 08:36:54 2010
New Revision: 120181
URL: http://llvm.org/viewvc/llvm-project?rev=120181&view=rev
Log:
StringRefs are POD-like.
Modified:
llvm/trunk/include/llvm/ADT/StringRef.h
Modified: llvm/trunk/include/llvm/ADT/StringRef.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/StringRef.h?rev=120181&r1=120180&r2=120181&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/StringRef.h (original)
+++ llvm/trunk/include/llvm/ADT/StringRef.h Fri Nov 26 08:36:54 2010
@@ -437,6 +437,10 @@
/// @}
+ // StringRefs can be treated like a POD type.
+ template <typename T> struct isPodLike;
+ template <> struct isPodLike<StringRef> { static const bool value = true; };
+
}
#endif
More information about the llvm-commits
mailing list