---
Point& Point::operator++()
{
_x++;
_y++;
return *this;
}
---
Node* operator[](const std::string &childName)
{
//return node
return children_[childName];
}
---
Complex Complex::operator+( Complex &other )
{
return Complex( re + other.re, im + other.im );
}
---
Point &Point::operator=( Point &pt )
{
_x = pt._x;
_y = pt._y;
return *this;
}
---
operator char *()
{
return this.toStdString().c_str();
}
---
Point &operator()( int dx, int dy )
{
_x += dx;
_y += dy;
return *this;
}
---
Podemos ver más aquí.
No hay comentarios:
Publicar un comentario