Fogão (The Big Fire), Estrela Solitária (The Lonely Star) 及O GLORIOSO
成立
1904年
城市
里約熱內盧
主場
阿維蘭熱奧林匹克體育場
容納人數
46,831
主席
Carlos Eduardo Pereira
總教練
Jair Ventura
聯賽
巴西足球甲級聯賽
2018
巴甲,第 9 位
網站
官方網站
主場球衣
客场球衣
第三球衣
保地花高(Botafogo de Futebol e Regatas),是一間位於里約熱內盧的巴西體育會,在國際足協二十世紀著名球會(FIFA Clubs of the 20th Century)中,保地花高排第12。球會的標誌上的一粒單獨的星,是球會的符號。保地花高在字面上解作放火的人,和其發源地鄰近的沙灘名稱。
10
1
I have a function that searches a vector of iterators and returns the iterator if its names matches a string passed as an argument. koalaGraph::PVertex lookUpByName(std::string Name, std::vector<koalaGraph::PVertex>& Vertices) { for (size_t i = 0; i < Vertices.size(); i++) { if(Vertices[i]->info.name == Name) return Vertices[i]; } } My question is how can I implement this as a lambda, to use it in connection with std::find_if ? I'm trying this: std::vector<koalaGraph::PVertex> V; std::string Name; std::find_if(V.begin(), V.end(), [&Name]() {return Name == V->info.name;}) But it says that V an enclosing-function local variable cannot be referenced in a lambda body unless it is in the capture list.
...