Exemple #1
0
Iter
PhoneBook::searchPhone(const string & phone, Iter i)
{
    for ( ; i != _records.end(); i++)
        if (i->phone().find(phone) != -1)
            return i;
    return i;
    /*return find_if(_records.begin(), _records.end(), CheckMatch(phone, 2));*/
}