Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

operator = overloading c++

inline bool operator==(const X& lhs, const X& rhs){ /* do actual comparison */ }
inline bool operator!=(const X& lhs, const X& rhs){ return !(lhs == rhs); }
Source by en.cppreference.com #
 
PREVIOUS NEXT
Tagged: #operator #overloading
ADD COMMENT
Topic
Name
3+7 =