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