^Bramlage P, Durand-Zaleski I, Desai N, Pirk O, Hacker C. The value of irbesartan in the management of hypertension. Expert Opin Pharmacother. 2009, 10 (11): 1817–31. PMID 19601700.
^Tronvik E, Stovner LJ, Helde G, Sand T, Bovim G. Prophylactic treatment of migraine with an angiotensin II receptor blocker: a randomized controlled trial. JAMA. 2003, 1 (289): 65–9. PMID 12503978. doi:10.1001/jama.289.1.65.
^Dang A, Zhang Y, Liu G, Chen G, Song W, Wang B. Effects of losartan and irbesartan on serum uric acid in hypertensive patients with hyperuricaemia in Chinese population. J Hum Hypertens. 2006年1月, 20 (1): 45–50. PMID 16281062. doi:10.1038/sj.jhh.1001941.
^Daskalopoulou SS, Tzovaras V, Mikhailidis DP, Elisaf M. Effect on serum uric acid levels of drugs prescribed for indications other than treating hyperuricaemia. Curr. Pharm. Des. 2005, 11 (32): 4161–75 [2018-11-08]. PMID 16375738. (原始内容存档于2009-05-24).
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.
...