2006-10-25から1日間の記事一覧
typedef std::pair Item; typedef std::vector List; typedef typename List::iterator iterator; List v; void DoAll( void (*pFunc)(DataType&)) { for( iterator it = v.begin(); it!=v.end(); ++it) { pFunc( it->second); } } こんな関数があったらいま…