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:
#include <compare> struct HasOpEq { bool operator==(HasOpEq const&) const; }; struct HasSpaceship { auto operator<=>(HasSpaceship const&) const = default; }; void f() { auto l = [] {}; int arr[42]; for (auto i : arr) {} HasOpEq hasOpEq1; HasOpEq hasOpEq2; if (hasOpEq1 != hasOpEq2) ; HasSpaceship hasSpaceship1; HasSpaceship hasSpaceship2; if (hasSpaceship1 < hasSpaceship2) ; }
Insight:
Console: