This is a component‐private class. Do not use.
Synopsis
Declared in <bslstl_function_rep.h>
class Function_Rep;
Description
This class provides a non‐template representation for a bsl::function instance. It handles all of the object‐management parts of bsl::function that are not specific to the prototype (argument list and return type), e.g., storing, copying, and moving the function object, but not invoking the function (which requires knowledge of the prototype). These management methods are run‐time polymorphic, and therefore do not require that this class be a template (although several of the member functions are templates).
Type Aliases
Name |
Description |
A "generic" function type analogous to the data type |
|
This class does not conform to any specific interface so is not allocator‐aware in the strict sense. However, this type does hold an allocator for its AA client and therefore uses the type name for the allocator preferred by AA types. |
Member Functions
Name |
Description |
|
Create an empty object using the specified |
|
Destroy this object and its target object (if any) and deallocate memory for the target object (if not in‐place). This destructor is implemented to correctly deallocate a target object that has been allocated but not constructed (e.g., if an exception is thrown while constructing the target). |
Copy‐initialize this rep from the specified |
|
Return the allocator used to supply memory for this object. |
|
Do nothing if the specified |
|
Return a pointer the invoker function set using |
|
Return |
|
Return |
|
Change this object to be an empty object without changing its allocator. Any previous target is destroyed and deallocated. Note that value returned by |
|
Move‐initialize this rep from the rep at the specified |
|
Exchange this object's target object, manager function, and invoker with those of the specified |
|
If |
|
Return a pointer offering modifiable access to this object's target. If |
|
Return a reference to the |
Created with MrDocs