]> git.lyx.org Git - lyx.git/blobdiff - src/support/lyxfunctional.h
Create a grfx::Loader class and so move large chunks of code out of
[lyx.git] / src / support / lyxfunctional.h
index fbbbb78076bc701ec382af79636e10cbdb577a39..0d129c6c63aea22be32fa614a9b9176f37724cb5 100644 (file)
@@ -5,7 +5,7 @@
 
 /** \file lyxfunctional.h
     \brief Convenient function objects for use with LyX
-    
+
     This is currently a small collection of small function objects for use
     together with std::algorithms.
 **/
 
 namespace lyx {
 
-
 template<class R, class C, class A>
 class class_fun_t {
 public:
-       class_fun_t(C & ct, R(C::*p)(A)) 
+       class_fun_t(C & ct, R(C::*p)(A))
                : c(ct), cmf(p) {}
        R operator()(A & a) const {
                return (c.*cmf)(a);
@@ -60,7 +59,7 @@ class_fun(C & c, R(C::*f)(A))
 
 
 template <class C, class A> void_class_fun_t<C, A>
-class_fun(C & c, void(C::*f)(A))
+void_class_fun(C & c, void(C::*f)(A))
 {
        return void_class_fun_t<C, A>(c, f);
 }
@@ -78,7 +77,7 @@ public:
        typedef void difference_type;
        typedef void pointer;
        typedef void reference;
-       
+
        back_insert_fun_iterator(Cont & x, MemRet(Type::*p)())
                : container(&x), pmf(p) {}
 
@@ -118,12 +117,12 @@ public:
        typedef void difference_type;
        typedef void pointer;
        typedef void reference;
-       
+
        const_back_insert_fun_iterator(Cont & x, MemRet(Type::*p)() const)
                : container(&x), pmf(p) {}
-       
+
        ~const_back_insert_fun_iterator() {}
-      
+
        const_back_insert_fun_iterator &
        operator=(Type const * val) {
                container->push_back((val->*pmf)());
@@ -213,7 +212,7 @@ compare_memfun(R(C::*p)() const, A const & a)
        return const_compare_memfun_t<R, C, A>(p, a);
 }
 
-       
+
 // Functors used in the template.
 
 ///