jaulib v1.3.6
Jau Support Library (C++, Java, ..)
Loading...
Searching...
No Matches
jau::func::null_target_t< R, A > Class Template Referencefinal

func::null_target_t implementation for no function. More...

#include <functional3.hpp>

Inheritance diagram for jau::func::null_target_t< R, A >:
Collaboration diagram for jau::func::null_target_t< R, A >:

Public Member Functions

 null_target_t () noexcept
 
operator() (A...) override
 
bool operator== (const target_t< R, A... > &rhs) const noexcept override
 
- Public Member Functions inherited from jau::func::target_t< R, A... >
 target_t (const target_t &o) noexcept=default
 
 target_t (const target_t &o) noexcept=default
 
 target_t (target_t &&o) noexcept=default
 
 target_t (target_t &&o) noexcept=default
 
virtual ~target_t () noexcept
 
virtual ~target_t () noexcept
 
target_toperator= (const target_t &o) noexcept=default
 
target_toperator= (const target_t &o) noexcept=default
 
target_toperator= (target_t &&o) noexcept=default
 
target_toperator= (target_t &&o) noexcept=default
 
constexpr target_type type () const noexcept
 Return the func::target_type of this invocation function wrapper.
 
constexpr target_type type () const noexcept
 Return the func::target_type of this invocation function wrapper.
 

Additional Inherited Members

- Protected Member Functions inherited from jau::func::target_t< R, A... >
 target_t (target_type ttype_) noexcept
 
 target_t (target_type ttype_) noexcept
 

Detailed Description

template<typename R, typename... A>
class jau::func::null_target_t< R, A >

func::null_target_t implementation for no function.

identifiable as jau::func::target_type::null via jau::function<R(A...)>::type().

This special type is used for an empty jau::function instance w/o holding a function, e.g. when created with the default constructor.

Template Parameters
Rfunction return type
Afunction arguments
See also
Function Overview

Definition at line 114 of file functional3.hpp.

Constructor & Destructor Documentation

◆ null_target_t()

template<typename R, typename... A>
jau::func::null_target_t< R, A >::null_target_t ( )
inlinenoexcept

Definition at line 116 of file functional3.hpp.

Member Function Documentation

◆ operator()()

template<typename R, typename... A>
R jau::func::null_target_t< R, A >::operator() ( A... )
inlineoverridevirtual

Implements jau::func::target_t< R, A... >.

Definition at line 120 of file functional3.hpp.

◆ operator==()

template<typename R, typename... A>
bool jau::func::null_target_t< R, A >::operator== ( const target_t< R, A... > & rhs) const
inlineoverridevirtualnoexcept

Implements jau::func::target_t< R, A... >.

Definition at line 124 of file functional3.hpp.


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