泷化桥 (越南语:Cầu Sông Hòa/.mw-parser-output .han-nom{font-family:"Nom Na Tong","Han-Nom Gothic","HAN NOM A","HAN NOM B","Ming-Lt-HKSCS-UNI-H","Ming-Lt-HKSCS-ExtB","FZKaiT-Extended","FZKaiT-Extended(SIP)","FZKaiS-Extended","FZKaiS-Extended(SIP)","Sun-ExtA","Sun-ExtB","MingLiU","MingLiU-ExtB","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","SimSun","SimSun-ExtB",sans-serif} 梂泷化),是越南的河同铁路99.457km处。也是谅山省枝陵县与右陇县县界。从1965年起,就是越南战争美国空军与海军航空兵最重要的轰炸目标。
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.
...