#include "Pair.h" template T Pair::munge() const { return this->first_ + this->second_; } template Pair &Pair::operator=(const Pair &rhs) { // check for self-assignment and return with no change if found // (would be harmless to allow it, but good practice) if (this == &rhs) { return *this; } // copy state from rhs & return first_ = rhs.first_; second_ = rhs.second_; return *this; }