# What are the VarTypes... for in AddLambda()?

**URL:** <https://forums.unrealengine.com/t/what-are-the-vartypes-for-in-addlambda/450630>\
**Category:** C++\
**Tags:** unreal-engine, delegates, CPP, question\
**Created:** [June 13, 2019, 3:59pm UTC](https://forums.unrealengine.com/t/what-are-the-vartypes-for-in-addlambda/450630 "2019-06-13T15:59:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ConeBone](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ConeBone](https://forums.unrealengine.com/u/ConeBone)\
**Post date:** [June 13, 2019, 3:59pm UTC](https://forums.unrealengine.com/t/what-are-the-vartypes-for-in-addlambda/450630/1 "2019-06-13T15:59:36Z")

</div>

TBaseMulticastDelegate has a function signature

```
template<typename FunctorType, typename... VarTypes>
inline FDelegateHandle AddLambda(FunctorType&& InFunctor, VarTypes... Vars)

```

What are the `Vars` used for?

---

<div class="post-metadata">

**Author:** ![TBBle](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tbble/32/996112_2.png) [@TBBle](https://forums.unrealengine.com/u/TBBle)\
**Post date:** [October 4, 2019, 5:23am UTC](https://forums.unrealengine.com/t/what-are-the-vartypes-for-in-addlambda/450630/2 "2019-10-04T05:23:03Z")

</div>

Like the other `Add*` functions, they let you curry extra parameters to be passed back to your lambda when the delegate is invoked.

---

<div class="post-metadata">

**Author:** ![eldar\_anzu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eldar\_anzu](https://forums.unrealengine.com/u/eldar_anzu)\
**Post date:** [November 30, 2021, 12:34pm UTC](https://forums.unrealengine.com/t/what-are-the-vartypes-for-in-addlambda/450630/3 "2021-11-30T12:34:55Z")

</div>

just pass the parameters, for example:  
createlambda(&urmodule::urfunc,1,2,3)
