/* CSE 333 Su12 lecture 12 demo: pair/Pair.cc */ /* Gribble/Perkins */ // Implementation of Pair functions declared in Pair.h template Thing &Pair::get_first() { return first_; } template Thing &Pair::get_second() { return first_; } template void Pair::set_first(Thing ©me) { first_ = copyme; } template void Pair::set_second(Thing ©me) { second_ = copyme; } template void Pair::Reverse() { // makes *3* copies Thing tmp = first_; first_ = second_; second_ = tmp; }