[C++] template
개요 template <typename T1, typename T2> class Test 특수화 template <typename T1, typename T2> class Test<T1 *, T2 *> { ...
개요 template <typename T1, typename T2> class Test 특수화 template <typename T1, typename T2> class Test<T1 *, T2 *> { ...
개요 static_cast 명시적(explicit) 변환 const_cast 상수성 추가/제거 as_const C++17 const reference로 변환 ...
개요 런타임에 동작을 결정
함수 오버로딩 이름은 같지만 매개변수의 타입 혹은 개수가 다른 함수 반환형이 다른 것은 인정되지 않음 bool과 string으로만 오버로딩 할 경우 char형 배열/포인터는 string이 아닌 bool형으로 판단 코드 #include <iostream...
개요 다른 클래스나 함수에서 private 멤버에 대한 접근이 필요할 때 사용(단방향)