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 |
|
Alias for the allocator type held for allocator‐aware clients. |
Member Functions
Name |
Description |
|
Create an empty object using the specified |
|
Destroy this object and deallocate any non‐inplace target storage. |
Copy‐initialize this rep from the specified |
|
Return the allocator used to supply memory for this object. |
|
Install |
|
Return a pointer the invoker function set using |
|
Return |
|
Return |
|
Make this object empty without changing its allocator. |
|
Move‐initialize this rep from the rep at the specified |
|
Exchange this object's target, manager, and invoker with |
|
Return a modifiable pointer to the target if its type is |
|
Return a modifiable pointer to this object's target. |
|
Return the |
Created with MrDocs