Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
operator+ is the operator for adding.
The following line of code calls operator+ to add the values of two integers:
const int x = 3 + 4; |
operator+ is encapsulated by the functor std::plus.
#include <cassert> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.