C++ Template Practice
No documentation (commenting) is required on thisassignment.
Convert the OrderedPair class, which is provided below, into atemplated class. Note that it will only work with types that havethe operators + and < and << overloaded. But you should beable to try your templated class out with types string, myString,double, feetInches, and fraction.
Also, create a programmer-defined exception class named”DuplicateMemberError” and add an if statement to each of the twomutators to throw this exception if the precondition has not beenmet. The precondition is given as a comment in the header file.Notice that you can test your exception handling by entering thesame
PayPal Gateway not configured
PayPal Gateway not configured