[Comment] struct operator overloading
overloading
typedef struct DataS
{
bool aflag = false;
bool bflag = false;
Data& operator=(const Data& data)
{
this->aflag = data.aflag;
this->bflag = data.bflag;
return *this;
}
bool operator==(const DataS& data) const
{
return data.aflag == this->aflag && data.bflag == this->bflag;
}
} DataS;