MCPcopy Create free account
hub / github.com/ablab/spades / ends_with

Function ends_with

ext/include/boost/algorithm/string/predicate.hpp:140–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

iends_withFunction · 0.70

Calls 4

as_literalFunction · 0.85
is_equalClass · 0.85
beginClass · 0.50
endClass · 0.50

Tested by

no test coverage detected