.. index:: pair: class; EE::ObservableVector::Connection .. _doxid-class_e_e_1_1_observable_vector_1_1_connection: class EE::ObservableVector::Connection ====================================== .. toctree:: :hidden: Overview ~~~~~~~~ Move-only scoped ownership of one collection observer. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class Connection { public: // construction :target:`Connection`(); :target:`Connection`(const Connection&); :target:`Connection`(Connection&& other); :target:`~Connection`(); // methods Connection& :target:`operator=`(const Connection&); Connection& :target:`operator=`(Connection&& other); void :ref:`disconnect`(); :target:`operator bool`() const; }; .. _details-class_e_e_1_1_observable_vector_1_1_connection: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Move-only scoped ownership of one collection observer. Methods ------- .. index:: pair: function; disconnect .. _doxid-class_e_e_1_1_observable_vector_1_1_connection_1a87b9e9053e0fffafe4877eecdbc3d364: .. ref-code-block:: cpp :class: doxyrest-title-code-block void disconnect() Disconnects the observer. Calling this more than once is safe.