일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- virtual function
- Effective c++
- Smart Pointer
- 비교 함수 객체
- 반복자
- lua
- 메타테이블
- exception
- resource management class
- implicit conversion
- effective stl
- 함수 객체
- c++
- 참조자
- effective modern c++
- 영화
- more effective c++
- 암시적 변환
- 예외
- 스마트 포인터
- 언리얼
- 티스토리챌린지
- UE4
- reference
- operator new
- 오블완
- 게임
- 상속
- 영화 리뷰
- 다형성
Archives
- Today
- Total
목록2025/02/07 (1)
스토리텔링 개발자
[Effective Modern C++] 3. decltype
항목 3. decltype의 작동 방식을 숙지하라 decltype주어진 이름이나 표현식의 타입을 알려준다.하지만 가끔 예상 밖의 결과를 제공하기도 한다.C++11에서는 함수의 리턴 타입을 매개변수 타입들로 추론해야 하는 함수 템플릿을 선언할 때 주로 사용한다. decltype의 예측할 수 있는 결과const int i = 0;// decltype(i) = const intbool f(const Widget& w);// decltype(w) = const Widget&// decltype(f) = bool(const Widget&)struct Point{ int x, y;};// decltype(Point::x) = int// decltype(Point::y) = intWidget w;//de..
개발/Effective Modern C++
2025. 2. 7. 11:27