Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is an old version of boost. Click here for the latest version's documentation home page.
Class template slot
c++boost.gif (8819 bytes)HomeLibrariesPeopleFAQMore

Class template slot

boost::slot — Pass slots as function arguments.

Synopsis

template<typename SlotFunction> 
class slot {
public:
  // construct/copy/destruct
  template<typename Slot> slot(Slot);
};

Description

slot construct/copy/destruct

  1. template<typename Slot> slot(Slot target);

    Effects: Invokes visit_each (unqualified) to discover pointers and references to signals::trackable objects in target.

    Initializes this to contain the incoming slot target, which may be any function object with which a SlotFunction can be constructed.

Last revised: , at GMTCopyright © 2001-2003 Douglas Gregor