Request Short Link
C++ 98
C++ 11
C++ 14
C++ 17
C++ 20
C++ 2b
for-loops as while-loops
array subscription
Show all implicit casts
Use libc++
std::initializer_list
Show noexcept internals
Show padding information
Show coroutine transformation
Default
15
18
20
22
26
More
GitHub
Patreon
Issues
About
Policies
Examples
C++ Insights @ YouTube
Settings
Version
None
×
Made by
Andreas Fertig
Powered by
Flask
and
CodeMirror
Source:
int main() { char c; int x; char b; auto l = [=] () mutable { c = 1, x = 2; b = 3; }; static_assert(sizeof(l) == sizeof(int)*3); auto l2 = [=] () mutable { x = 2; c = 1, b = 3; }; static_assert(sizeof(l2) == sizeof(int)*2); }
Insight:
Console: