인프런 커뮤니티 질문&답변
IndexOf Template 관련 문의 드립니다.
작성
·
313
0
안녕하세요~
강의 중에 IndexOf Template 내용 중에서
private:
enum {temp = IndexOf<TypeList<Tail...>.,T>::value};
public:
enum {value = (temp == -1) ? -1 : temp+1}
있습니다.
private/public으로 나눠준 이유가 따로 있나요?





