Sock::operator=

Assignment operators

Synopses

Declared in <util/sock.h>

Copy assignment operator, disabled because closing the same socket twice is undesirable.

Sock&
operator=(Sock const& other) = delete;
» more...

Move assignment operator, grab the socket from another object and close ours (if set).

virtual
Sock&
operator=(Sock&& other);
» more...

Return Value

Reference to this object.

Parameters

NameDescription
otherThe socket wrapper that would be assigned from.