[#BloombergLP-bslstl-Function_Variadic-08]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Function_Variadic-0e.adoc[Function&lowbar;Variadic]&lt;RET(ARGS&period;&period;&period;)&gt;
:relfileprefix: ../../
:mrdocs:

Component&hyphen;private base providing representation and call operator for `bsl&colon;&colon;function`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;function&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class RET,
    class&period;&period;&period; ARGS&gt;
class xref:BloombergLP/bslstl/Function_Variadic-0e.adoc[Function&lowbar;Variadic]&lt;RET(ARGS&period;&period;&period;)&gt;
    : public xref:BloombergLP/bslstl/Function_ArgTypes-06.adoc[Function&lowbar;ArgTypes&lt;RET(ARGS&period;&period;&period;)&gt;]
----

== Description

This component&hyphen;private class template contains the physical representation and provides the variadic interfaces for `bsl&colon;&colon;function` (see class and component documentation for `bsl&colon;&colon;function`)&period; `bsl&colon;&colon;function` publicly inherits from an instantiation of this template&period; This implementation class exists to 1) minimize the amount of variadic template expansion required in C&plus;&plus;03 using the `sim&lowbar;cpp11&lowbar;features&period;pl` utility and 2) work around issues with the Sun CC compiler, which has trouble with argument type deduction when a template argument has a partial specialization (as `Function&lowbar;Variadic` does)&period; `bsl&colon;&colon;function` does not have a partial specialization and delegates to the `Function&lowbar;Variadic` base class only those parts of the interface and implementation that depend on decomposing the function prototype into a return type and variadic list of argument types&period;

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:BloombergLP/bslstl/Function_ArgTypes-06.adoc[Function&lowbar;ArgTypes&lt;RET(ARGS&period;&period;&period;)&gt;]`
| Component&hyphen;private metafunction providing nested argument typedefs for `bsl&colon;&colon;function`&period;
|===

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslstl/Function_Variadic-08/allocator_type.adoc[`allocator&lowbar;type`] 
| This `typedef` is an alias to the allocator type of the representation&period;
| xref:BloombergLP/bslstl/Function_Variadic-08/result_type.adoc[`result&lowbar;type`] 
| This `typedef` is an alias to the return type of `PROTOTYPE`&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslstl/Function_Variadic-08/2constructor.adoc[`Function&lowbar;Variadic`]         [.small]#[constructor]#
| Create an empty object using the specified `allocator`&period;
| xref:BloombergLP/bslstl/Function_Variadic-08/operator_call.adoc[`operator()`] 
| Invoke the target with `args&period;&period;&period;`, or throw if this object is empty&period;
|===


== Protected Data Members

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslstl/Function_Variadic-08/d_rep.adoc[`d&lowbar;rep`] 
| Non&hyphen;templated representation of this function wrapper&period;
|===


== Friends

[cols="1,4"]
|===
| Name| Description
| `xref:bsl/function-0a.adoc[bsl::function]`
| Forward declaration&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
