'Is there something similar to C# discards in C++

Take the following piece of code in C#:

_ = 10 + 10;

Here, _ means discard, which is used to basically ignore variables not used anywhere. It also shows that the unused expression was intentional by the programmer. Now what I'm wondering is that is there anything like this in C++?

c++


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source