sigc::visitor<T_functor>::do_visit_each() performs a functor on each of the targets of a functor.  
 More...
#include <sigc++/visit_each.h>
|  | 
| template<class T_action > | 
| static void | do_visit_each (const T_action & _A_action, const T_functor & _A_functor) | 
|  | 
template<class T_functor>
struct sigc::visitor< T_functor >
sigc::visitor<T_functor>::do_visit_each() performs a functor on each of the targets of a functor. 
All unknown types just call _A_action on them. Add specializations that specialize the T_functor argument for your own functor types, so that subobjects get visited. This is needed to enable auto-disconnection support for your functor types.
- Example:
- namespace some_ns - { -   struct some_functor -   { -     void operator()() {} -     some_possibly_sigc_trackable_derived_type some_data_member; -     some_other_functor_type some_other_functor; -   }; - } -   - { -   template <> -   struct visitor<some_ns::some_functor> -   { -     template <class T_action> -                               const some_ns::some_functor& _A_target) -     { -     } -   }; - } - void visit_each(const T_action &_A_action, const T_functor &_A_functor) - This function performs a functor on each of the targets of a functor. - Definition: visit_each.h:169 
- The libsigc++ namespace. - Definition: limit_reference.h:12 
- static void do_visit_each(const T_action &_A_action, const T_functor &_A_functor) - Definition: visit_each.h:158 
◆ do_visit_each()
template <class T_functor > 
template <class T_action > 
  
  | 
        
          | static void sigc::visitor< T_functor >::do_visit_each | ( | const T_action & | _A_action, |  
          |  |  | const T_functor & | _A_functor |  
          |  | ) |  |  |  | inlinestatic |