网页资讯视频图片知道文库贴吧地图采购
进入贴吧全吧搜索

 
 
 
日一二三四五六
       
       
       
       
       
       

签到排名:今日本吧第个签到,

本吧因你更精彩,明天继续来努力!

本吧签到人数:0

一键签到
成为超级会员,使用一键签到
一键签到
本月漏签0次!
0
成为超级会员,赠送8张补签卡
如何使用?
点击日历上漏签日期,即可进行补签。
连续签到:天  累计签到:天
0
超级会员单次开通12个月以上,赠送连续签到卡3张
使用连续签到卡
05月11日漏签0天
c++吧 关注:614,150贴子:2,110,534
  • 看贴

  • 图片

  • 吧主推荐

  • 游戏

  • 10回复贴,共1页
<<返回c++吧
>0< 加载中...

洗蚊乐贱! Lambda表达式类型及其影响因素探究~ =^.^=

  • 只看楼主
  • 收藏

  • 回复
  • XnL
  • <
    11
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
RT!;






该实验表明:
1.lambda表达式是类型是一个函数...>_<好像是废话;
2.lambda表达式类型与其捕获方式无关,与其返回类型及参数类型有关...^.`;
我现在很想知道lambda表达式的捕获..原理是什么..;


  • 一个码农
  • ==
    10
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
@帝球


义乌市迪丰网络科技
c++,一键修复电脑软件和游戏缺失DLL、DirectX导致的崩溃、卡顿、故障等问题
2025-05-11 12:54广告
立即查看
2025-05-11 12:54:11
广告
  • z什么什么k
  • +
    13
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
lambda难道不是重载了operator()的匿名类么……


  • 幻の上帝
  • ->*
    15
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
WG21/N3691
5.1.2
3 The type of the lambda-expression (which is also the type of the closure object) is a unique, unnamed nonunion
class type — called the closure type — whose properties are described below. This class type is not
an aggregate (8.5.1). The closure type is declared in the smallest block scope, class scope, or namespace
scope that contains the corresponding lambda-expression. [ Note: This determines the set of namespaces
and classes associated with the closure type (3.4.2). The parameter types of a lambda-declarator do not
affect these associated namespaces and classes. —end note ] An implementation may define the closure
type differently from what is described below provided this does not alter the observable behavior of the
program other than by changing:
— the size and/or alignment of the closure type,
— whether the closure type is trivially copyable (Clause 9),
— whether the closure type is a standard-layout class (Clause 9), or
— whether the closure type is a POD class (Clause 9).
An implementation shall not add members of rvalue reference type to the closure type.


登录百度账号

扫二维码下载贴吧客户端

下载贴吧APP
看高清直播、视频!
  • 贴吧页面意见反馈
  • 违规贴吧举报反馈通道
  • 贴吧违规信息处理公示
  • 10回复贴,共1页
<<返回c++吧
分享到:
©2025 Baidu贴吧协议|隐私政策|吧主制度|意见反馈|网络谣言警示