Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

more/gen/clip.h

Go to the documentation of this file.
00001   template<typename Iterator>
00002     Iterator _set_insert(Iterator it, Iterator it_end,
00003                          typename
00004                          iterator_traits<Iterator>::value_type const& x,
00005                          bidirectional_iterator_tag const&) {
00006         Iterator it1 = it_end; ++it_end;
00007         Iterator it2 = it_end;
00008         *it1 = x;
00009         while(!(*it1 < *it2)) {
00010             swap(*it1, *it2);
00011             if(it1 == it) break;
00012             --it1; --it2;
00013         }
00014         return it_end;
00015     }

Generated on Sat Sep 7 19:11:10 2002 for more with Doxygen 1.2.13.1. Doxygen 1.2.13.1 is written and copyright 1997-2002 by Dimitri van Heesch.