source: dev/trunk/ab5.0/jenga/include/common/VectorSupporter.h@ 764

Last change on this file since 764 was 624, checked in by dai_9181, 16 years ago

WindowInfoクラスをリファクタリング

File size: 242 bytes
Line 
1#pragma once
2
3namespace Jenga{
4namespace Common{
5
6
7template<class T> void EraseVectorItem( T &v, int index )
8{
9 T::iterator it = v.begin();
10 int i = 0;
11 while( i < index )
12 {
13 i ++;
14 it ++;
15 }
16 v.erase( it );
17}
18
19
20
21}
22}
Note: See TracBrowser for help on using the repository browser.