c++ lambda表达式的类型
时间: 2023-11-02 17:06:49 浏览: 168
C++ lambda表达式的类型是不具名的function object(或称functor)。每个lambda表达式的类型是独一无二的。 Lambda表达式在C++11中引入,它是一种匿名函数的定义方式。Lambda表达式的类型可以通过typeid关键字获得,但无法获得额外的信息。 Lambda表达式的类型可以通过decltype关键字来定义函数对象。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [C++14::lambda函数的类型](https://blog.csdn.net/lanchunhui/article/details/49848495)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [C++ 中lambda表达式的编译器实现原理](https://download.csdn.net/download/weixin_38547421/12786127)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文