MCPcopy Create free account
hub / github.com/arun11299/cpp-subprocess / FuncHolder

Class FuncHolder

cpp-subprocess/subprocess.hpp:1033–1038  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1031 };
1032 template <typename T>
1033 struct FuncHolder: HolderBase {
1034 FuncHolder(T func): func_(std::move(func)) {}
1035 void operator()() const override { func_(); }
1036 // The function pointer/reference
1037 T func_;
1038 };
1039
1040 std::unique_ptr<HolderBase> holder_ = nullptr;
1041};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected