Changeset 40399 in webkit for trunk/JavaScriptCore/wtf/VectorTraits.h
- Timestamp:
- Jan 30, 2009, 12:34:14 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/VectorTraits.h
r39556 r40399 23 23 24 24 #include "RefPtr.h" 25 #include "TypeTraits.h" 25 26 #include <utility> 26 27 #include <memory> … … 29 30 30 31 namespace WTF { 31 32 template <typename T> struct IsPod { static const bool value = false; };33 template <> struct IsPod<bool> { static const bool value = true; };34 template <> struct IsPod<char> { static const bool value = true; };35 template <> struct IsPod<signed char> { static const bool value = true; };36 template <> struct IsPod<unsigned char> { static const bool value = true; };37 template <> struct IsPod<short> { static const bool value = true; };38 template <> struct IsPod<unsigned short> { static const bool value = true; };39 template <> struct IsPod<int> { static const bool value = true; };40 template <> struct IsPod<unsigned int> { static const bool value = true; };41 template <> struct IsPod<long> { static const bool value = true; };42 template <> struct IsPod<unsigned long> { static const bool value = true; };43 template <> struct IsPod<long long> { static const bool value = true; };44 template <> struct IsPod<unsigned long long> { static const bool value = true; };45 template <> struct IsPod<float> { static const bool value = true; };46 template <> struct IsPod<double> { static const bool value = true; };47 template <> struct IsPod<long double> { static const bool value = true; };48 template <typename P> struct IsPod<P *> { static const bool value = true; };49 32 50 33 template<bool isPod, typename T>
Note:
See TracChangeset
for help on using the changeset viewer.