Lines Matching defs:function

66 // Note that when a key function is not used, every translation unit that uses
90 class _LIBCPP_TEMPLATE_VIS function; // undefined
122 _LIBCPP_HIDE_FROM_ABI bool __not_null(function<_Fp> const& __f) {
632 // null, even if the function is empty.
777 "std::function's small buffer optimization. This function should "
798 "std::function's small buffer optimization. This function should "
824 class _LIBCPP_TEMPLATE_VIS function<_Rp(_ArgTypes...)>
836 bool = _And< _IsNotSame<__remove_cvref_t<_Fp>, function>, __invokable<_Fp, _ArgTypes...> >::value>
855 _LIBCPP_HIDE_FROM_ABI function() _NOEXCEPT {}
856 _LIBCPP_HIDE_FROM_ABI _LIBCPP_HIDE_FROM_ABI function(nullptr_t) _NOEXCEPT {}
857 _LIBCPP_HIDE_FROM_ABI function(const function&);
858 _LIBCPP_HIDE_FROM_ABI function(function&&) _NOEXCEPT;
860 _LIBCPP_HIDE_FROM_ABI function(_Fp);
864 _LIBCPP_HIDE_FROM_ABI function(allocator_arg_t, const _Alloc&) _NOEXCEPT {}
866 _LIBCPP_HIDE_FROM_ABI function(allocator_arg_t, const _Alloc&, nullptr_t) _NOEXCEPT {}
868 _LIBCPP_HIDE_FROM_ABI function(allocator_arg_t, const _Alloc&, const function&);
870 _LIBCPP_HIDE_FROM_ABI function(allocator_arg_t, const _Alloc&, function&&);
872 _LIBCPP_HIDE_FROM_ABI function(allocator_arg_t, const _Alloc& __a, _Fp __f);
875 _LIBCPP_HIDE_FROM_ABI function& operator=(const function&);
876 _LIBCPP_HIDE_FROM_ABI function& operator=(function&&) _NOEXCEPT;
877 _LIBCPP_HIDE_FROM_ABI function& operator=(nullptr_t) _NOEXCEPT;
879 _LIBCPP_HIDE_FROM_ABI function& operator=(_Fp&&);
881 _LIBCPP_HIDE_FROM_ABI ~function();
883 // function modifiers:
884 _LIBCPP_HIDE_FROM_ABI void swap(function&) _NOEXCEPT;
889 function(allocator_arg, __a, std::forward<_Fp>(__f)).swap(*this);
893 // function capacity:
898 bool operator==(const function<_R2(_ArgTypes2...)>&) const = delete;
901 bool operator!=(const function<_R2(_ArgTypes2...)>&) const = delete;
905 // function invocation:
909 // function target access:
920 function(_Rp (*)(_Ap...)) -> function<_Rp(_Ap...)>;
923 function(_Fp) -> function<_Stripped>;
927 function<_Rp(_ArgTypes...)>::function(const function& __f) : __f_(__f.__f_) {}
932 function<_Rp(_ArgTypes...)>::function(allocator_arg_t, const _Alloc&, const function& __f) : __f_(__f.__f_) {}
936 function<_Rp(_ArgTypes...)>::function(function&& __f) _NOEXCEPT : __f_(std::move(__f.__f_)) {}
941 function<_Rp(_ArgTypes...)>::function(allocator_arg_t, const _Alloc&, function&& __f) : __f_(std::move(__f.__f_)) {}
946 function<_Rp(_ArgTypes...)>::function(_Fp __f) : __f_(std::move(__f)) {}
951 function<_Rp(_ArgTypes...)>::function(allocator_arg_t, const _Alloc& __a, _Fp __f) : __f_(std::move(__f), __a) {}
955 function<_Rp(_ArgTypes...)>& function<_Rp(_ArgTypes...)>::operator=(const function& __f) {
956 function(__f).swap(*this);
961 function<_Rp(_ArgTypes...)>& function<_Rp(_ArgTypes...)>::operator=(function&& __f) _NOEXCEPT {
967 function<_Rp(_ArgTypes...)>& function<_Rp(_ArgTypes...)>::operator=(nullptr_t) _NOEXCEPT {
974 function<_Rp(_ArgTypes...)>& function<_Rp(_ArgTypes...)>::operator=(_Fp&& __f) {
975 function(std::forward<_Fp>(__f)).swap(*this);
980 function<_Rp(_ArgTypes...)>::~function() {}
983 void function<_Rp(_ArgTypes...)>::swap(function& __f) _NOEXCEPT {
988 _Rp function<_Rp(_ArgTypes...)>::operator()(_ArgTypes... __arg) const {
995 const std::type_info& function<_Rp(_ArgTypes...)>::target_type() const _NOEXCEPT {
1001 _Tp* function<_Rp(_ArgTypes...)>::target() _NOEXCEPT {
1007 const _Tp* function<_Rp(_ArgTypes...)>::target() const _NOEXCEPT {
1014 inline _LIBCPP_HIDE_FROM_ABI bool operator==(const function<_Rp(_ArgTypes...)>& __f, nullptr_t) _NOEXCEPT {
1021 inline _LIBCPP_HIDE_FROM_ABI bool operator==(nullptr_t, const function<_Rp(_ArgTypes...)>& __f) _NOEXCEPT {
1026 inline _LIBCPP_HIDE_FROM_ABI bool operator!=(const function<_Rp(_ArgTypes...)>& __f, nullptr_t) _NOEXCEPT {
1031 inline _LIBCPP_HIDE_FROM_ABI bool operator!=(nullptr_t, const function<_Rp(_ArgTypes...)>& __f) _NOEXCEPT {
1038 inline _LIBCPP_HIDE_FROM_ABI void swap(function<_Rp(_ArgTypes...)>& __x, function<_Rp(_ArgTypes...)>& __y) _NOEXCEPT {