^Tassili National Park, Sahara Algeria. Archmillennium.net. [2012-12-16].
^Bahn, Paul. The Cambridge Illustrated History of Prehistoric Art Cambridge. 剑桥: 剑桥大学出版社. 1998. ISBN 978-0521454735 (英语).
^Mercier, Norbert; Le Quellec, Jean-Loïc; Hachid, Malika; Agsous, Safia; Grenet, Michel. OSL dating of quaternary deposits associated with the parietal art of the Tassili-n-Ajjer plateau (Central Sahara). Quaternary Geochronology. July 2012, 10: 367–373 [7 March 2013]. doi:10.1016/j.quageo.2011.11.010.引文使用过时参数coauthors (帮助)
^Tassili n'Ajer. UNESCO World Heritage Centre. [7 March 2013].
^"Crocodiles in the Sahara Desert: An Update of Distribution, Habitats and Population Status for Conservation Planning in Mauritania". PLOS ONE. 25 February 2011.
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.
...