
typeid(Derived1) == typeid(\*ptr)과 같이 ptr의 타입을 비교하는 상황에서 ptr이 nullptr일 경우 반환되는 exception마찬가지로 \`\` const\` 유무를 바꿔주는 연산자이다. const성 빼고는 다 같아야 한다.그리고 po

stream: 입출력 데이터 흐름.I/O를 다루려면 stream을 프로그램과 destination 각각에 연결하면 된다.buffer란 정보 전송률의 차이를 극복하고, disk 접근 횟수를 줄여 속도를 높여준다.예를들어, disk에서 input을 받는다면 disk에선 5
decltype: 컴파일 시점에 타입을 추론-선언하는 방법 함수를 선언할 때 리턴타입을 화살표로 정해줄 수 있다. 그러니까 double f1(double, int)일걸 auto f2(double, int) -> double 할 수 있다는 것이다. 여기에 decltyp
move constructor move constructor original 변수에 들어 있던 string을 moved로 옮긴다. 이 때 original은 비어 있는 상태가 된다. list initialization constructor: string(initial