Browse Source

Add typedef in Vector and HashMap.

aster2013 11 years ago
parent
commit
a8833c9712
2 changed files with 5 additions and 0 deletions
  1. 3 0
      Source/Urho3D/Container/HashMap.h
  2. 2 0
      Source/Urho3D/Container/Vector.h

+ 3 - 0
Source/Urho3D/Container/HashMap.h

@@ -36,6 +36,9 @@ namespace Urho3D
 template <class T, class U> class HashMap : public HashBase
 {
 public:
+    typedef T T;
+    typedef U U;
+
     /// Hash map key-value pair with const key.
     class KeyValue
     {

+ 2 - 0
Source/Urho3D/Container/Vector.h

@@ -35,6 +35,7 @@ namespace Urho3D
 template <class T> class Vector : public VectorBase
 {
 public:
+    typedef T T;
     typedef RandomAccessIterator<T> Iterator;
     typedef RandomAccessConstIterator<T> ConstIterator;
     
@@ -458,6 +459,7 @@ private:
 template <class T> class PODVector : public VectorBase
 {
 public:
+    typedef T T;
     typedef RandomAccessIterator<T> Iterator;
     typedef RandomAccessConstIterator<T> ConstIterator;