Beard, R. (1992) Number. In W. Bright (ed.) International Encyclopedia of Linguistics.
Corbett, G. (2000). Number. Cambridge University Press.
Greenberg, Joseph H. (1972) Numeral classifiers and substantival number: Problems in the genesis of a linguistic type. Working Papers on Language Universals (Stanford University) 9. 1-39.
Laycock, Henry. (2005) 'Mass nouns, Count nouns and Non-count nouns' Encyclopedia of Language and Linguistics. Oxford: Elsevier.
Laycock, Henry. (2006) Words without Objects. Oxford: Clarendon Press.
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.
...