Struct Connection

Synopsis

#include <src/uvw/emitter.h>

template<typename E>
struct Connection: private Handler<E>::Connection

Description

Connection type for a given event type.

Given an event type E, Connection<E> is the type of the connection object returned by the event emitter whenever a listener for the given type is registered.

Mentioned in

Inheritance

Ancestors: Handler< E >::Connection

Methods

Connection overload
operator= overload

Source

Lines 203-217 in src/uvw/emitter.h.

template<typename E>
struct Connection: private Handler<E>::Connection {
    template<typename> friend class Emitter;
    Connection() = default;
    Connection(const Connection &) = default;
    Connection(Connection &&) = default;
    Connection(typename Handler<E>::Connection conn)
        : Handler<E>::Connection{std::move(conn)}
    {}
    Connection & operator=(const Connection &) = default;
    Connection & operator=(Connection &&) = default;
};





Add Discussion as Guest

Log in