class EE::ObservableVector::Connection

Overview

Move-only scoped ownership of one collection observer. More…

#include <observablevector.hpp>

class Connection {
public:
    // construction

    Connection();
    Connection(const Connection&);
    Connection(Connection&& other);
    ~Connection();

    // methods

    Connection& operator=(const Connection&);
    Connection& operator=(Connection&& other);
    void disconnect();
    operator bool() const;
};

Detailed Documentation

Move-only scoped ownership of one collection observer.

Methods

void disconnect()

Disconnects the observer. Calling this more than once is safe.