Login
From:
skebanga.github.io
(Uncensored)
subscribe
C++17 If statement with initializer – Steve Lorimer – Notes on C++, Linux and other topics
https://skebanga.github.io/if-with-initializer/
links
backlinks
Roast topics
Find topics
Find it!
Introduced under proposal P00305r0, If statement with initializer give us the ability to initialize a variable within an if statement, and then, once initialized, perform the actual conditional check.