![]() |
Data Abstraction and Problem Solving with C++Walls and Mirrorsby Frank M. Carrano |
![]() |
c04p234a.hGo to the documentation of this file.00001 00017 namespace std 00018 { 00019 template<> struct greater<string*> 00020 { 00021 // override operator() to create a function object 00022 bool operator() (string *s1, string *s2) 00023 { 00024 return (*s1) > (*s2); 00025 } // end operator() 00026 }; // end std::greater 00027 } // end std namespace |