diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2009-10-22 22:11:22 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2009-10-22 22:11:22 +0000 |
commit | 71a5c22c2b635ea903c3ae7d2695ca649b38726f (patch) | |
tree | 96bc787234b3b3b2b86cf0540889780ae06709a4 /include/llvm/Support/type_traits.h | |
parent | abc5ac728961cb23b1041a3466fe2eb4521603c3 (diff) | |
download | llvm-71a5c22c2b635ea903c3ae7d2695ca649b38726f.tar.gz llvm-71a5c22c2b635ea903c3ae7d2695ca649b38726f.tar.bz2 llvm-71a5c22c2b635ea903c3ae7d2695ca649b38726f.tar.xz |
Try r84890 again (adding ValueMap<>), now that I've tested the compile on
gcc-4.4.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84902 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/type_traits.h')
-rw-r--r-- | include/llvm/Support/type_traits.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Support/type_traits.h b/include/llvm/Support/type_traits.h index 5f799b850d..cfaae4b841 100644 --- a/include/llvm/Support/type_traits.h +++ b/include/llvm/Support/type_traits.h @@ -87,6 +87,15 @@ struct is_base_of { sizeof(char) == sizeof(dont_use::base_of_helper<Base>((Derived*)0)); }; +// remove_pointer - Metafunction to turn Foo* into Foo. Defined in +// C++0x [meta.trans.ptr]. +template <typename T> struct remove_pointer { typedef T type; }; +template <typename T> struct remove_pointer<T*> { typedef T type; }; +template <typename T> struct remove_pointer<T*const> { typedef T type; }; +template <typename T> struct remove_pointer<T*volatile> { typedef T type; }; +template <typename T> struct remove_pointer<T*const volatile> { + typedef T type; }; + } #endif |