在托爾金(J. R. R. Tolkien)奇幻小說的中土大陸裡,巨鷹(Eagle)是巨大的飛鳥,他們具有智慧,能夠說話。他們在電影及形象方面有各種不同的大小形態。普遍認他們和現代的鷹相似(獨立有感知的鷹類,如鵟亞科),但巨鷹遠較巨大。在《精靈寶鑽》的描述裡,鷹王索隆多(Thorondor)展翼可達55米。
在《哈比人歷險記》裡,沒有任何巨鷹的姓名說明,僅從巨鷹中區別出鷹王。許多讀者都推測拯救索林·橡木盾(Thorin Oakenshield)及其伙伴、在孤山(Erebor)參與五軍之戰(Battle of Five Armies)那位鷹王是關赫或蘭楚瓦。在《魔戒三部曲:王者再臨》裡,甘道夫曾言關赫救了他兩次,但如果鷹王及關赫是同一位巨鷹,關赫應救了甘道夫三次。
目录
1起源
2事件
3概念及創作
4改編描述
5參考資料
起源
據《精靈寶鑽》所述,巨鷹是由維拉(Valar)之首曼威(Manwë)所創造,故又稱為曼威之鷹(Eagles of Manwë)。曼威派遣他們由維林諾(Valinor)前往中土大陸監視諾多族(Noldor)精靈及仇敵魔苟斯(Morgoth)。
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.
...