bool operator()(const typename Tr::char_type& x) const
{
return std::find_if(m_first, m_last,
- std::bind1st(Eq_traits<Tr>(), x)) == m_last;
+ [](const argument_type &ch) {return Eq_traits<Tr>(x, ch)}) == m_last;
}
};
#endif //#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
pointer finish = addr + sz;
const const_iterator result =
std::find_if(addr + pos, finish,
- std::bind2nd(Eq_traits<Traits>(), c));
+ [](const argument_type &ch) {return Eq_traits<Tr>(ch, c)});
return result != finish ? result - begin() : npos;
}
}
const const_iterator last = begin() + container_detail::min_value(len - 1, pos) + 1;
const_reverse_iterator rresult =
std::find_if(const_reverse_iterator(last), rend(),
- std::bind2nd(Eq_traits<Traits>(), c));
+ [](const argument_type &ch) {return Eq_traits<Tr>(ch, c)});
return rresult != rend() ? (rresult.base() - 1) - begin() : npos;
}
}
const pointer addr = this->priv_addr();
const pointer finish = addr + this->priv_size();
const const_iterator result
- = std::find_if(addr + pos, finish,
- std::not1(std::bind2nd(Eq_traits<Traits>(), c)));
+ = std::find_if_not(addr + pos, finish,
+ [](const argument_type &ch) {return Eq_traits<Tr>(ch, c)});
return result != finish ? result - begin() : npos;
}
}
else {
const const_iterator last = begin() + container_detail::min_value(len - 1, pos) + 1;
const const_reverse_iterator rresult =
- std::find_if(const_reverse_iterator(last), rend(),
- std::not1(std::bind2nd(Eq_traits<Traits>(), c)));
+ std::find_if_not(const_reverse_iterator(last), rend(),
+ [](const argument_type &ch) {return Eq_traits<Tr>(ch, c)});
return rresult != rend() ? (rresult.base() - 1) - begin() : npos;
}
}