Request Short Link
C++ 98
C++ 11
C++ 14
C++ 17
C++ 20
C++ 23
C++ 2c
for-loops as while-loops
array subscription
Show all implicit casts
Show all template parameters of a CallExpr
Use libc++
Transform std::initializer_list
Show noexcept internals
Show padding information
Show coroutine transformation
Show C++ to C transformation
Show object lifetime
Default
15
18
20
22
26
More
GitHub
Patreon
Issues
About
Policies
Examples
C++ Insights @ YouTube
Settings
Version
New C++ Insights Episode
×
Made by
Andreas Fertig
Powered by
Flask
and
CodeMirror
Source:
class CTest { auto Test() { return 22; } }; auto Test() { return 1; } auto Best() -> int { return 1; } constexpr auto CEBest() -> int { return 1; } decltype(auto) West() { return 'c'; } constexpr decltype(auto) CEWest() { return 'c'; } [[maybe_unused]] inline constexpr decltype(auto) MUCEWest() { return 'c'; } int main() { int x = 2; const char* p; constexpr auto cei = 0; auto constexpr cei2 = 0; auto i = 0; decltype(auto) xX = (i); auto ii = &i; auto& ir = i; auto * ip = &i; const auto * cip = &i; auto * pp = p; const auto * cp = p; volatile const auto * vcp = p; auto f = 1.0f; auto c = 'c'; auto u = 0u; decltype(u) uu = u; [[maybe_unused]] auto mu = 0u; [[maybe_unused]] decltype(u) muu = u; }
Insight:
Console: