The ‘=’ is an operator in C++ STL which copies (or moves) an unordered_set to another unordered_set and unordered_set::operator= is the corresponding operator function. There are three versions of this function.

The first version takes reference of an unordered_set as an argument and copies it to an unordered_set.

The second version performs a move assignment i.e it moves the content of an unordered_set to another unordered_set.

The third version assigns contents of an initializer list to an unordered_set.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.