MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / find_last_not_of

Function find_last_not_of

extern/boost/boost/test/utils/algorithm.hpp:184–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182/// @param last2 - second collection end iterator
183template<class BidirectionalIterator1, class ForwardIterator2>
184inline BidirectionalIterator1
185find_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

Callers 1

find_last_not_ofMethod · 0.85

Calls 2

find_ifFunction · 0.85
findFunction · 0.50

Tested by

no test coverage detected