Description:-
boost::operator:: equality_comparable function check the operands are not equal,if not then returns false.Its return type is bool.
Header file-
#include <boost/operators.hpp>
Syntax:-
bool operator==(const T&, const T&)
where,
bool is the return type of the function,
operator is the keyword,
== is used for comparison of equality_comparable,
const T&, const T&:-they are the two objects of templates/class/structure. we need two parameter so to compare that's why we are passing two parameter in form of objects.
Sample Code:-
1 | #include <boost/operators.hpp> |
Output:-
false
Comments