]> git.lyx.org Git - lyx.git/blobdiff - src/support/lyxalgo.h
add FileName::renameTo() method.
[lyx.git] / src / support / lyxalgo.h
index 19c2485a34241b9cf5ee51c69d92360b2a0e24d7..b3a08241b42523727a9cd5777544b8d49f9cb24c 100644 (file)
@@ -73,21 +73,6 @@ OutputIter copy_if(InputIter first, InputIter last,
 }
 
 
-/// A slot in replacement for std::count for systems where it is broken.
-template <class Iterator, class T>
-typename std::iterator_traits<Iterator>::difference_type
-count (Iterator first, Iterator last, T const & value)
-{
-#ifdef HAVE_STD_COUNT
-       return std::count(first, last, value);
-#else
-       typename std::iterator_traits<Iterator>::difference_type n = 0;
-       while (first != last)
-               if (*first++ == value) ++n;
-       return n;
-#endif
-}
-
 /// Remove all duplicate entries in c.
 template<class C>
 void eliminate_duplicates(C & c)