10 #ifndef ApproxMVBB_ContainerFunctions_hpp 11 #define ApproxMVBB_ContainerFunctions_hpp 14 namespace ContainerFunctions {
23 template<
typename Iterator,
typename Func>
49 template<
typename Iterator,
typename Func>
73 return f(*e)? e : ++e;
84 template<
typename Iterator,
typename Comp>
88 if( std::distance(b,e)<2 ) {
95 if( !c(*comp, *b ) ) {
118 template<
typename Iterator,
typename Func,
typename Skip>
122 if( std::distance(b,e)<2 ) {
128 while(b!=e && s(*b)){
140 if(s(*b) || !f(*comp, *b ) ) {
161 #endif // ContainerFunctions_hpp These are some container definitions.
Iterator moveConsecutiveToFrontIf(Iterator b, Iterator e, Comp c)
Iterator moveElementsToFrontIf(Iterator b, Iterator e, Func f)
Iterator moveElementsToBackIf(Iterator b, Iterator e, Func f)