Logo Search packages:      
Sourcecode: icu version File versions  Download package

Measure & Measure::operator= ( const Measure other  ) 

Assignment operator ICU 3.0

Definition at line 36 of file measure.cpp.

References MeasureUnit::clone(), number, and unit.

Referenced by TimeUnitAmount::operator=(), and CurrencyAmount::operator=().

                                                {
    if (this != &other) {
        delete unit;
        number = other.number;
        unit = (MeasureUnit*) other.unit->clone();
    }
    return *this;
}


Generated by  Doxygen 1.6.0   Back to index