C++ asterisk asterisk operator

c++, operators, sfml

Solution

It's dereferencing a pointer to a pointer, in order to get to the original `sf:TcpSocket`.

It's just two `*` operators in a row.

In this case, you could also write:

// Given sf::TcpSocket **it;
sf::TcpSocket *tmp = *it; // Dereference once
sf::TcpSocket& client = *tmp;

Problem

I have never seen this operation done before in any languages, since this is a symbol google makes it hard to search. What does ** mean ? ``` sf::TcpSocket& client = **it; ```

Original source