HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Types | Public Member Functions
hi::v1::weak_callback< ResultType(ArgTypes...)> Class Template Reference

Public Types

using result_type = ResultType
 
using callback_type = callback<ResultType(ArgTypes...)>
 

Public Member Functions

 weak_callback (weak_callback const &other) noexcept=default
 
 weak_callback (weak_callback &&other) noexcept=default
 
weak_callbackoperator= (weak_callback const &other) noexcept=default
 
weak_callbackoperator= (weak_callback &&other) noexcept=default
 
 weak_callback (callback_type const &other) noexcept
 
void reset () noexcept
 
long use_count () const noexcept
 
bool expired () const noexcept
 Check if the callback object is expired.
 
callback_type lock () const noexcept
 

Member Function Documentation

◆ expired()

template<typename ResultType , typename... ArgTypes>
bool hi::v1::weak_callback< ResultType(ArgTypes...)>::expired ( ) const
inlinenoexcept

Check if the callback object is expired.

Return values
falseThe callback object is functioning.
trueThe callback object is destroyed or in the process of being destroyed.

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