10 lines
216 B
C++
10 lines
216 B
C++
#include <utility>
|
|
|
|
#include "Currency.h"
|
|
|
|
Currency::Currency(std::string name, float rate) : name(std::move(name)), rate(rate) {}
|
|
|
|
bool Currency::operator==(Currency ¤cy) {
|
|
return name == currency.name;
|
|
}
|