map<int ,PayData> m_mapPayData; //PayData为结构体
struct IsPayData: binary_function<pair<int ,PayData>, int ,bool>
{
bool operator()( const pair<int ,PayData>& key, const int values) const
{
if (key.second.shop == values)
return true;
else
return false;
}
};
map<int,PopStarManager::PayData>::iterator itPayData = find_if(FunPopStarManager->m_mapPayData.begin(),FunPopStarManager->m_mapPayData.end(),bind2nd(PopStarManager::IsPayData(),3));
m_iPayCode = itPayData->second.ID;