| 138 | */ |
| 139 | template<typename Range1T, typename Range2T, typename PredicateT> |
| 140 | inline bool ends_with( |
| 141 | const Range1T& Input, |
| 142 | const Range2T& Test, |
| 143 | PredicateT Comp) |
| 144 | { |
| 145 | iterator_range<BOOST_STRING_TYPENAME range_const_iterator<Range1T>::type> lit_input(::boost::as_literal(Input)); |
| 146 | iterator_range<BOOST_STRING_TYPENAME range_const_iterator<Range2T>::type> lit_test(::boost::as_literal(Test)); |
| 147 | |
| 148 | typedef BOOST_STRING_TYPENAME |
| 149 | range_const_iterator<Range1T>::type Iterator1T; |
| 150 | typedef BOOST_STRING_TYPENAME |
| 151 | std::iterator_traits<Iterator1T>::iterator_category category; |
| 152 | |
| 153 | return detail:: |
| 154 | ends_with_iter_select( |
| 155 | ::boost::begin(lit_input), |
| 156 | ::boost::end(lit_input), |
| 157 | ::boost::begin(lit_test), |
| 158 | ::boost::end(lit_test), |
| 159 | Comp, |
| 160 | category()); |
| 161 | } |
| 162 | |
| 163 | |
| 164 | //! 'Ends with' predicate |
no test coverage detected