ogreiteratorwrappers.patch

来自「使用stl技术,(还没看,是听说的)」· PATCH 代码 · 共 42 行

PATCH
42
字号
diff -Naur original/OgreIteratorWrappers.h patched/OgreIteratorWrappers.h
--- original/OgreIteratorWrappers.h	Fri May 14 21:39:46 2004
+++ patched/OgreIteratorWrappers.h	Thu Jul  1 18:48:22 2004
@@ -52,6 +52,8 @@
 		/// Private constructor since only the parameterised constructor should be used
         VectorIterator() {};
     public:
+        typedef typename T::value_type ValueType;
+
         /** Constructor.
         @remarks
             Provide a start and end iterator to initialise.
@@ -115,6 +117,9 @@
         /// Private constructor since only the parameterised constructor should be used
         MapIterator() {};
     public:
+        typedef typename T::mapped_type MappedType;
+        typedef typename T::key_type KeyType;
+
         /** Constructor.
         @remarks
             Provide a start and end iterator to initialise.
@@ -190,6 +195,8 @@
         /// Private constructor since only the parameterised constructor should be used
         ConstVectorIterator() {};
     public:
+        typedef typename T::value_type ValueType;
+
         /** Constructor.
         @remarks
         Provide a start and end iterator to initialise.
@@ -253,6 +260,9 @@
         /// Private constructor since only the parameterised constructor should be used
         ConstMapIterator() {};
     public:
+        typedef typename T::mapped_type MappedType;
+        typedef typename T::key_type KeyType;
+
         /** Constructor.
         @remarks
         Provide a start and end iterator to initialise.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?