ReactivePlusPlus
ReactiveX implementation for C++20
Loading...
Searching...
No Matches
rpp::interface_disposable Struct Referenceabstract

Interface of disposable. More...

#include <interface_disposable.hpp>

Public Member Functions

virtual bool is_disposed () const noexcept=0
 Check if this disposable is just disposed.
 
void dispose () noexcept
 Dispose disposable and free any underlying resources and etc.
 

Protected Types

enum class  Mode : bool { Disposing = 0 , Destroying = 1 }
 

Protected Member Functions

virtual void dispose_impl (Mode mode) noexcept=0
 

Friends

template<rpp::constraint::decayed_type TStrategy>
class rpp::details::auto_dispose_wrapper
 

Detailed Description

Interface of disposable.

Member Function Documentation

◆ dispose()

void rpp::interface_disposable::dispose ( )
inlinenoexcept

Dispose disposable and free any underlying resources and etc.

Attention
This function must be thread-safe

◆ is_disposed()

virtual bool rpp::interface_disposable::is_disposed ( ) const
pure virtualnoexcept

Check if this disposable is just disposed.

Attention
This function must be thread-safe

Implemented in rpp::composite_disposable_impl< Container >, and rpp::composite_disposable_impl< rpp::details::disposables::default_disposables_container >.


The documentation for this struct was generated from the following file: