Thread overview
tuple function parameters
Dec 01, 2008
llee
Dec 01, 2008
Bill Baxter
Dec 01, 2008
llee
December 01, 2008
I defined a function that uses a tuple to define it's function parameters like this:

     class Example (Signature ...)
     {
          void f (Signature) { ... }
     }

I want to store the input parameters in an array, where the are is a data member of the enclosing class.

     class Example (Signature ...)
     {
          ? array declaration here.
          void f (Signature) { ... }
     }

Is this possible? If so, how would I do this?
December 01, 2008
On Tue, Dec 2, 2008 at 4:12 AM, llee <larry@workingwondersus.com> wrote:
> I defined a function that uses a tuple to define it's function parameters like this:
>
>     class Example (Signature ...)
>     {
>          void f (Signature) { ... }
>     }
>
> I want to store the input parameters in an array, where the are is a data member of the enclosing class.
>
>     class Example (Signature ...)
>     {
>          ? array declaration here.

         Signature theData;

>          void f (Signature) { ... }
>     }
>
> Is this possible? If so, how would I do this?

Sure.  The above should work.

--bb
December 01, 2008
Bill Baxter Wrote:

> On Tue, Dec 2, 2008 at 4:12 AM, llee <larry@workingwondersus.com> wrote:
> > I defined a function that uses a tuple to define it's function parameters like this:
> >
> >     class Example (Signature ...)
> >     {
> >          void f (Signature) { ... }
> >     }
> >
> > I want to store the input parameters in an array, where the are is a data member of the enclosing class.
> >
> >     class Example (Signature ...)
> >     {
> >          ? array declaration here.
> 
>          Signature theData;
> 
> >          void f (Signature) { ... }
> >     }
> >
> > Is this possible? If so, how would I do this?
> 
> Sure.  The above should work.
> 
> --bb

Excellent, thanks.