MCPcopy Create free account
hub / github.com/davisking/dlib / wrap

Function wrap

dlib/test/invoke.cpp:495–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493 std::enable_if_t<is_callable<Callable>::value, bool> = true,
494 std::enable_if_t<callable_nargs<Callable>::value >= 1, bool> = true,
495 std::enable_if_t<std::is_floating_point<callable_arg<0, Callable>>::value, bool> = true
496 >
497 auto wrap (
498 Callable&& clb,
499 int& i
500 )
501 {
502 i = 1;
503
504 return [pclb = std::forward<Callable>(clb)](float a, int b, long c) {
505 pclb(a, b, c);
506 };
507 }
508
509 template <
510 class Callable,

Callers 6

testFunction · 0.70
test_decoder_images_onlyFunction · 0.70
test_decoder_fullFunction · 0.70
test_encoderFunction · 0.70
mainFunction · 0.50
mainFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected