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;

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

virtual
Sock&
operator=(Sock&& other);

Return Value

Reference to this object.

Parameters

Name

Description

other

The socket wrapper that would be assigned from.

Created with MrDocs