| 823 | |
| 824 | template <typename T> |
| 825 | typename T::value_type::second_type max ( |
| 826 | const T& a |
| 827 | ) |
| 828 | { |
| 829 | typedef typename T::value_type::second_type type; |
| 830 | |
| 831 | type temp = 0; |
| 832 | for (typename T::const_iterator i = a.begin(); i != a.end(); ++i) |
| 833 | { |
| 834 | if (temp < i->second) |
| 835 | temp = i->second; |
| 836 | } |
| 837 | return temp; |
| 838 | } |
| 839 | |
| 840 | // ---------------------------------------------------------------------------------------- |
| 841 |
no test coverage detected