블로그는 나의 힘!
[ Programing ]/C++2009. 12. 24. 00:13

[ 최적 조건 리턴 ] 조건 없이 바로 조건값 리턴

inline const bool IsPlaying() { return ( STATUS_PLAY == m_eStatus ); }    
// if 사용 없이 바로 해당이 있으면 true, 없으면 flase 리턴한다.



 - 조건값 리턴 : return ( STATUS_PLAY == m_eStatus );
Posted by Mister_Q