Definition at line 1758 of file tr1_impl/functional.
std::function< _Res(_ArgTypes...)>::function | ( | ) | [inline] |
Default construct creates an empty function call wrapper.
!
(bool)*this Definition at line 1784 of file tr1_impl/functional.
std::function< _Res(_ArgTypes...)>::function | ( | _M_clear_type * | ) | [inline] |
Default construct creates an empty function call wrapper.
!
(bool)*this Definition at line 1790 of file tr1_impl/functional.
std::function< _Res(_ArgTypes...)>::function | ( | const function< _Res(_ArgTypes...)> & | __x | ) |
Function copy constructor.
x | A function object with identical call signature. |
(bool)*this == (bool)xDefinition at line 1978 of file tr1_impl/functional.
std::function< _Res(_ArgTypes...)>::function | ( | _Functor | __f, | |
typename __gnu_cxx::__enable_if< !is_integral< _Functor >::value, _Useless >::__type | = _Useless() | |||
) |
Builds a function that targets a copy of the incoming function object.
f | A function object that is callable with parameters of type T1 , T2 , ..., TN and returns a value convertible to Res . |
reference_wrapper<F>
, then this function object will contain a reference to the function object f.get()
. If f is a NULL function pointer or NULL pointer-to-member, the newly-created object will be empty.
If f is a non-NULL function pointer or an object of type reference_wrapper<F>
, this function will not throw.
Definition at line 1992 of file tr1_impl/functional.
std::function< _Res(_ArgTypes...)>::operator _Safe_bool | ( | ) | const [inline] |
Determine if the function wrapper has a target.
true
when this function object contains a target, or false
when it is empty.Definition at line 1919 of file tr1_impl/functional.
_Res std::function< _Res(_ArgTypes...)>::operator() | ( | _ArgTypes... | __args | ) | const |
Invokes the function targeted by *this
.
bad_function_call | when ! (bool)*this |
this
.
Definition at line 2010 of file tr1_impl/functional.
__gnu_cxx::__enable_if<!is_integral<_Functor>::value, function&>::__type std::function< _Res(_ArgTypes...)>::operator= | ( | _Functor | __f | ) | [inline] |
Function assignment to a new target.
f | A function object that is callable with parameters of type T1 , T2 , ..., TN and returns a value convertible to Res . |
*this
reference_wrapper<F>
, then this function object will contain a reference to the function object f.get()
. If f is a NULL function pointer or NULL pointer-to-member, this
object will be empty.
If f is a non-NULL function pointer or an object of type reference_wrapper<F>
, this function will not throw.
Definition at line 1881 of file tr1_impl/functional.
function& std::function< _Res(_ArgTypes...)>::operator= | ( | _M_clear_type * | ) | [inline] |
Function assignment to zero.
!
(bool)*this *this
Definition at line 1851 of file tr1_impl/functional.
function& std::function< _Res(_ArgTypes...)>::operator= | ( | const function< _Res(_ArgTypes...)> & | __x | ) | [inline] |
Function assignment operator.
x | A function with identical call signature. |
(bool)*this == (bool)x *this
*this
. If x has no target, then *this
will be empty.If x targets a function pointer or a reference to a function object, then this operation will not throw an exception.
Definition at line 1837 of file tr1_impl/functional.
void std::function< _Res(_ArgTypes...)>::swap | ( | function< _Res(_ArgTypes...)> & | __x | ) | [inline] |
Swap the targets of two function objects.
f | A function with identical call signature. |
this
function object and f. This function will not throw an exception.
Definition at line 1896 of file tr1_impl/functional.
_Functor * std::function< _Res(_ArgTypes...)>::target | ( | ) |
Access the stored target function object.
typeid(Functor)
.equals(target_type()); otherwise, a NULL pointer.Definition at line 2042 of file tr1_impl/functional.
References std::_Any_data::_M_access().
const type_info & std::function< _Res(_ArgTypes...)>::target_type | ( | ) | const |
Determine the type of the target of this function object wrapper.
typeid(void)
if !
(bool)*this.Definition at line 2026 of file tr1_impl/functional.
References std::_Any_data::_M_access().