Changeset 352 for trunk/Include/Classes/System/Collections
- Timestamp:
- Oct 4, 2007, 2:50:09 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/System/Collections/Generic/List.ab
r344 r352 109 109 Return False 110 110 End If 111 112 RemoveAt( index ) 113 Return True 114 End Function 115 116 /*! 117 @brief List内の指定したインデックスの要素を削除する 118 @author Daisuke Yamamoto 119 @date 2007/10/03 120 @return 値が削除されたときはTrue、されなかったときはFlaseが返る 121 */ 122 Sub RemoveAt( index As Long ) 111 123 memmove( items + index*SizeOf(VoidPtr), items + (index+1)*SizeOf(VoidPtr), (size-(index+1))*SizeOf(VoidPtr) ) 112 124 Realloc( size - 1 ) 113 125 size-- 114 Return True 115 End Function 126 End Sub 116 127 End Class 117 128
Note:
See TracChangeset
for help on using the changeset viewer.