배열 포인트와 _countof(혹은 ARRAYSIZE)
배열 포인트의 선언
int _tmp[10];
int(&_refTem)[10] = _tmp;
응용하면 _countof 혹은 ARRAYSIZE와 같은 같은 외계인 코드도 쓸 수 있다...
https://stackoverflow.com/questions/4064134/arraysize-c-macro-how-does-it-work
ARRAYSIZE C++ macro: how does it work?
OK, I'm not entirely a newbie, but I cannot say I understand the following macro. The most confusing part is the division with value cast to size_t: what on earth does that accomplish? Especially, ...
stackoverflow.com
https://zetawiki.com/wiki/C%2B%2B_ARRAYSIZE()
C++ ARRAYSIZE() - 제타위키
다음 문자열 포함...
zetawiki.com
_countof
배열의 원소 갯수를 얻는 기능의 매크로 입니다. (Visual C++) 이 매크로가 처음에는 다음과 같이 정의 되었습니다. #define _countof ...
wikidocs.net
http://1st.gamecodi.com/board/zboard.php?id=GAMECODI_Talkdev&no=1634
[re] vs2010 에서 이런게 버그라니....
_countof 구현을 보니 재미있게 되어있네요.·<span style=\"cursor:pointer; color: blue\" onclick=\"pre...
1st.gamecodi.com