1
내가 튜플을 말해봐?간단한 튜플 작업
내가 튜플을 말해봐?간단한 튜플 작업
이렇게하는 한 가지 방법을 발견했습니다. 이것이 gcc 이외의 다른 것에서 작동하는지 확신 할 수 없습니다.
#define first_(x, y) x
#define first(t) first_ t
#define second_(x, y) y
#define second(t) second_ t
#define T (a, b)
first(T) // expands to a
second(T) // expands to b