다음을 통해 공유


CComCurrency::operator ==

This operator compares two CComCurrency objects for equality.

bool operator ==( 
   const CComCurrency & cur  
) const;

Parameters

  • cur
    The CComCurrency object to compare.

Return Value

Returns true if the objects are equal (that is, the m_currency data members, both integer and fractional, in both objects have the same value), false otherwise.

Example

CComCurrency cur1(10, 5000), cur2;
cur2 = cur1;
ATLASSERT(cur1 == cur2);

Requirements

Header: atlcur.h

See Also

Reference

CComCurrency Class

CComCurrency::operator !=