make clean
New member
שאלה ב CPP
איך הקוד הבא עובד ? כלומר איך הקומפילר יודע ליצור LIST ואיטרטור שלה רק על סמך FORWARD DECLARATION?
#include <list>
using namespace std;
struct A;
struct B;
struct B {
list<A>::iterator itA;
};
struct A{
list<B>::iterator itB;
};
איך הקוד הבא עובד ? כלומר איך הקומפילר יודע ליצור LIST ואיטרטור שלה רק על סמך FORWARD DECLARATION?
#include <list>
using namespace std;
struct A;
struct B;
struct B {
list<A>::iterator itA;
};
struct A{
list<B>::iterator itB;
};