Compose C++ Lamda Functions with Transactions.