Variadic Template

In C++ templates may use to declare to get several version

In here you may find a way to declare a type called Param but not only one strict type.

You may use it with other type names to

And of course, you may create a function that calls himself recursively. But it needs its empty version too.

forward method may be used for possible move constructors.

Sizeof… is a standard method to get the count of the nested arguments.

You may also like...

1 Response

  1. 2020-04-03

    […] The variadic template uses stf:forward […]

Leave a Reply

Your email address will not be published. Required fields are marked *