KoreanFoodie's Study
C++ 정리 및 리마인드 (모던 C++를 중심으로) 본문
깃헙을 통해 모던 C++를 중심으로, 모던 C++의 기초 내용 중, 기억하면 좋을 부분만 간추려 Github에 정리중입니다.
예제 소스 코드는 모두의 코드의 씹어먹는 C++ 강좌를 참고했습니다. 정말 좋은 소스니 꼭 한 번 보시라고 권하고 싶습니다.
CPP Review
CPP Review following lectures from here, Effective C++ and Effective Modern C++.
Also cover other references & codes
1. Namespace
2. References
Reference is a nickname. Therefore it cannot be used alone, it needs original name to exist!
- Can't assign literals with reference, but with
const int &ref = 4
is allowed. When used as function's return type, it vanishes as the function returns, but const, such asconst int& f = function()
can extend return value's lifespan
3. New and Delete
4. Object Oriented Programming
- 1. What is class? It's a template used to create an instance
- 2. You should know about function overloading(with type conversion issue), and constructor(also default constructor).
- 3. Note there is also
default copy constructor
in c++, but don't forget to free memories likechar*
type! - 4. static variable in class : class shares identical variable. static function : class shares identical function.
static
type variable/function does not belong toobject
, butclass
- 5. Custom string class
- 6. explicit and mutable
5. Operator Overloading
- 1. Operator Overloading : Basics
- 2. IO, Operator++, Type Casting
- 3. Operator[] Overloading with Nth-Dim Array (Difficult)
6. Inheritance and Virtual Functions
- 1. C++ String & Inheritance
- 2. Virtual Functions and Polymorphism
- 3. Virtual Functions and Miscellaneous
7. C++ IO
8. ...Project
9. C++ Templates
- 1. C++ Template
- 2. Variadic Template
- 3. Template Meta Programming
- 4. Template Meta Programming2
- 4-2. Template Meta Programming2-2
10. C++ STL
- 1. C++ STL - Sequence Container
- 2. C++ STL - Associative Container
- 3. C++ STL - Algorithm
- 4. C++ STL - string and string_view
11. Exception Handling
12. Rvalue Reference
- 1. Rvalue Reference and move constructor
- 2. Move semantics, perfect forwarding, and universal reference
13. Smart Pointer
'Tutorials > C++ : Beginner' 카테고리의 다른 글
C++ 기초 개념 4-1 : 객체 지향 프로그래밍, 객체와 클래스 (0) | 2021.12.20 |
---|---|
C++ 기초 개념 3 : new와 delete (0) | 2021.12.20 |
C++ 기초 개념 2 : 참조자(레퍼런스) (0) | 2021.12.20 |
C++ 기초 개념 1 : 이름공간(namespace) (0) | 2021.12.20 |
모던 C++ 입문 1 - C++ 기초 (초기화, 리터럴, 예외, 포인터) (0) | 2021.11.14 |
Comments