MCPcopy Create free account
hub / github.com/SmingHub/Sming / showHowToUseBind

Method showHowToUseBind

samples/Basic_Delegates/app/application.cpp:38–42  ·  view source on GitHub ↗

This example shows how to use std::bind to make us of a function that has more parameters than our signature has

Source from the content-addressed store, hash-verified

36
37 // This example shows how to use std::bind to make us of a function that has more parameters than our signature has
38 void showHowToUseBind()
39 {
40 auto b = std::bind(functionWithMoreComplicatedSignature, 2, "parameters");
41 taskTimer.initializeMs(taskInterval, b).start();
42 }
43
44 // This example shows how to use a lambda expression as a callback
45 void callLambda()

Callers 1

initFunction · 0.80

Calls 1

startMethod · 0.45

Tested by

no test coverage detected