Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- this call
- C++
- diamond inheritance
- c++ basic practice
- dynamic_cast
- virtual destructor
- base from member
- increment operator
- std::ostream
- pointer to member data
- suffix return type
- conversion constructor
- placement new
- virtual function table
- virtual function
- vector size
- operator overloading
- member function pointer
- delete function
- vector capacity
- std::cout
- constructor
- 더 지니어스 양면포커
- std::vector
- discord bot
- std::endl
- new&delete
- virtual inheritance
- c++ multi chatting room
- return by reference
Archives
- Today
- Total
목록2024/09/10 (1)
I'm FanJae.

1. 생성자(Constructor)의 생성 원리1-1. 생성자, 소멸자 호출의 정확한 원리#include struct BM // BaseMember{ BM() { std::cout - 위와 같은 코드가 존재한다고 가정하자. 그러면 실제로는 아래와 같이 변환해준다.struct Base{ BM bm; Base() : bm() { } Base(int a) : bm() {} ~Base() {...; bm.~BM(); }};struct Derived : public Base{ DM dm; Derived() : Base(), dm() { } Derived(int a) : Base(), dm() { } ~Derived..
C++/Intermediate
2024. 9. 10. 22:29