function [constructor] | Constructors |
operator= | Assignment operators |
allocator | Return get_allocator().mechanism(). Note that this function exists for BDE compatibility and is not part of the C++ Standard Library. |
get_allocator | Return (a copy of) the allocator used to supply memory for this function. |
isInplace | Return true if this function is empty or if it is non-empty and its target qualifies for the small-object optimization (and is thus allocated within this object's footprint); otherwise, return false. |
swap | Exchange the targets held by this function and the specified other function. The behavior is undefined unless get_allocator() == other.get_allocator(). |
target | target overloads |
target_type | Return typeid(void) if this object is empty; otherwise typeid(FUNC) where FUNC is the type of the target object. |
operator BloombergLP::bdef_Function<PROTOTYPE*>& | Return *this, converted to a mutable bdef_Function reference by downcasting. The behavior is undefined unless bdef_Function<F*> is derived from bsl::function<F> and adds no new data members. |
operator BloombergLP::bslmf::NestedTraitDeclaration<function, UsesAllocatorArgT> | Nested trait declaration for bslmf::UsesAllocatorArgT. |
operator BloombergLP::bslmf::NestedTraitDeclaration<function, UsesBslmaAllocator> | Nested trait declaration for bslma::UsesBslmaAllocator. |
operator BloombergLP::bslmf::NestedTraitDeclaration<function, is_nothrow_move_constructible> | Nested trait declaration for is_nothrow_move_constructible. |
operator bool | (C++11 and later) Return false if this object is empty, otherwise return true. Note that this is an explicit conversion operator and is typically invoked implicitly in contexts such as in the condition of an if or while statement, though it can also be invoked via an explicit cast. |
operator BloombergLP::bdef_Function<PROTOTYPE*> const& | Return *this converted to a const bdef_Function reference by downcasting. The behavior is undefined unless bdef_Function<F*> is derived from bsl::function<F> and adds no new data members. |