일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- universal reference
- 예외
- effective modern c++
- Smart Pointer
- reference
- 참조자
- 게임
- operator new
- effective stl
- iterator
- lua
- virtual function
- c++
- Effective c++
- 보편 참조
- 스마트 포인터
- 티스토리챌린지
- UE4
- 반복자
- exception
- 암시적 변환
- 영화
- 영화 리뷰
- 오블완
- std::async
- resource management class
- 언리얼
- 상속
- implicit conversion
- more effective c++
Archives
- Today
- Total
목록2024/12/16 (1)
스토리텔링 개발자
[Effective STL] 29. istream_iterator vs istreambuf_iterator
항목 29. 문자 단위의 입력에는 istreambuf_iterator의 사용도 적절하다 텍스트 파일을 string 객체로ifstream inputFile("interastingData.txt");// inputFile을 읽어 fileData에 저장한다.// 하지만 정확한 답은 아니다.// 문법의 경우 항목 6 참조string fileData((istream_iterator(inputFile)), istream_iterator());이 경우 공백(whitespace) 문자를 객체에 복사하지 못한다..istream_iterator는 스트림을 읽을 때 operator이 연산자 함수는 공백 문자를 스킵한다.ifstream inputFile("interastingData.txt");inputFile.unset..
Effective C++/Effective STL
2024. 12. 16. 11:15