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 |
Tags
- virtual function table
- conversion constructor
- member function pointer
- virtual destructor
- std::ostream
- std::endl
- dynamic_cast
- return by reference
- virtual inheritance
- diamond inheritance
- constructor
- std::vector
- base from member
- pointer to member data
- new&delete
- std::cout
- delete function
- c++ basic practice
- this call
- C++
- discord bot
- vector capacity
- increment operator
- placement new
- 더 지니어스 양면포커
- suffix return type
- operator overloading
- vector size
- virtual function
- c++ multi chatting room
Archives
- Today
- Total
목록base from member (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