/* This file is part of KDBindings. SPDX-FileCopyrightText: 2021 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com> Author: Sean Harmer <sean.harmer@kdab.com> SPDX-License-Identifier: MIT Contact KDAB at <info@kdab.com> for commercial licensing options.*/#include<kdbindings/signal.h>#include<iostream>#include<string>usingnamespaceKDBindings;intmain(){// Create new signalSignal<std::string,int>signal;// Connect a lambdasignal.connect([](std::stringarg1,intarg2){std::cout<<arg1<<" "<<arg2<<std::endl;});// Emit the signal and the lambda is calledsignal.emit("The answer:",42);return0;}