다음을 통해 공유


CComCurrency::operator CURRENCY

These operators are used to cast a CComCurrency object to a CURRENCY data type.

operator CURRENCY&( ) throw( ); 
operator const CURRENCY&( ) const throw( );

Return Value

Returns a reference to a CURRENCY object.

Example

CComCurrency cur(10, 5000);
CURRENCY cy = static_cast<CURRENCY>(cur); // Note that explicit cast is not necessary
ATLASSERT(cy.int64 == 105000);

Requirements

Header: atlcur.h

See Also

Concepts

CComCurrency Class

CComCurrency Members