Scroll to navigation

std_function.h(3cxx) std_function.h(3cxx)

NAME

std_function.h

SYNOPSIS

Classes


struct std::__is_location_invariant< _Tp >
class std::_Function_base
Base class of all polymorphic function object wrappers. class std::bad_function_call
Exception class thrown when class template function's operator() is called with an empty target. class std::function< _Res(_ArgTypes...)>
Primary class template for std::function.

Namespaces


std
ISO C++ entities toplevel namespace is std.

Enumerations


enum _Manager_operation { __get_type_info, __get_functor_ptr, __clone_functor, __destroy_functor }

Functions


template<typename _Res , typename... _Args> bool std::operator!= (const function< _Res(_Args...)> &__f, nullptr_t) noexcept
Compares a polymorphic function object wrapper against 0 (the NULL pointer). template<typename _Res , typename... _Args> bool std::operator!= (nullptr_t, const function< _Res(_Args...)> &__f) noexcept
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. template<typename _Res , typename... _Args> bool std::operator== (const function< _Res(_Args...)> &__f, nullptr_t) noexcept
Compares a polymorphic function object wrapper against 0 (the NULL pointer). template<typename _Res , typename... _Args> bool std::operator== (nullptr_t, const function< _Res(_Args...)> &__f) noexcept
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. template<typename _Res , typename... _Args> void std::swap (function< _Res(_Args...)> &__x, function< _Res(_Args...)> &__y) noexcept
Swap the targets of two polymorphic function object wrappers.

Detailed Description

This is an internal header file, included by other library headers. Do not attempt to use it directly. Instead, include <functional>.

Definition in file std_function.h.

Author

Generated automatically by Doxygen for libstdc++ from the source code.

Wed Jul 14 2021 libstdc++