[C++11] Replace trivial lambda with std::cref.

llvm-svn: 202968
This commit is contained in:
Benjamin Kramer 2014-03-05 11:38:18 +00:00
parent cce644a633
commit fcef811822
1 changed files with 1 additions and 3 deletions

View File

@ -340,9 +340,7 @@ MultilibSet::filterCopy(const MultilibSet::FilterCallback &F,
void MultilibSet::filterInPlace(const MultilibSet::FilterCallback &F, void MultilibSet::filterInPlace(const MultilibSet::FilterCallback &F,
multilib_list &Ms) { multilib_list &Ms) {
Ms.erase(std::remove_if(Ms.begin(), Ms.end(), Ms.erase(std::remove_if(Ms.begin(), Ms.end(), std::cref(F)), Ms.end());
[&F](const Multilib &M) { return F(M); }),
Ms.end());
} }
raw_ostream &clang::driver::operator<<(raw_ostream &OS, const MultilibSet &MS) { raw_ostream &clang::driver::operator<<(raw_ostream &OS, const MultilibSet &MS) {