| 182 | /// @param last2 - second collection end iterator |
| 183 | template<class BidirectionalIterator1, class ForwardIterator2> |
| 184 | inline BidirectionalIterator1 |
| 185 | find_last_not_of( BidirectionalIterator1 first1, BidirectionalIterator1 last1, |
| 186 | ForwardIterator2 first2, ForwardIterator2 last2 ) |
| 187 | { |
| 188 | if( first1 == last1 || first2 == last2 ) |
| 189 | return last1; |
| 190 | |
| 191 | BidirectionalIterator1 it1 = last1; |
| 192 | while( --it1 != first1 && std::find( first2, last2, *it1 ) != last2 ) {} |
| 193 | |
| 194 | return it1 == first1 && std::find( first2, last2, *it1 ) != last2 ? last1 : it1; |
| 195 | } |
| 196 | |
| 197 | //____________________________________________________________________________// |
| 198 |
no test coverage detected