Can I write this if statement one line? – stackoverflow.com 06:04 Posted by Unknown No Comments I was wondering if there was a way to put this on one line? if (auto r = getGlobalObjectByName(word)) r->doSomething; // This works fine if (!auto r = getGlobalObjectByName(word)) r->... from Hot Questions - Stack Exchange OnStackOverflow via Blogspot Share this Google Facebook Twitter More Digg Linkedin Stumbleupon Delicious Tumblr BufferApp Pocket Evernote Unknown Artikel TerkaitWhat's the purpose of the channel in the brake track of this rim? – bicycles.stackexchange.comHow generate random ball in a specific space with tikz? – tex.stackexchange.comFind my polyphthongs! – codegolf.stackexchange.comMOSFET amplifier mid-point bias – electronics.stackexchange.comHow to respond to statements like "It's all yours" – interpersonal.stackexchange.comUnderstanding `echo $((0x63))` – unix.stackexchange.com
0 Comment to "Can I write this if statement one line? – stackoverflow.com"
Post a Comment