init if

  • 내용
    • 초기값을 한번 실행하고 if문 가능
    • C++17
  • 활용
      if (int ret = foo(); ret == -1) {}
    switch (int n = foo(); n) {}