MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / compose

Function compose

source/core/StarAlgorithm.hpp:65–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63
64template <typename FirstFunction, typename SecondFunction>
65decltype(auto) compose(FirstFunction&& firstFunction, SecondFunction&& secondFunction) {
66 return FunctionComposer<FirstFunction, SecondFunction>{std::move(std::forward<FirstFunction>(firstFunction)), std::move(std::forward<SecondFunction>(secondFunction))};
67}
68
69template <typename FirstFunction, typename SecondFunction, typename ThirdFunction, typename... RestFunctions>
70decltype(auto) compose(FirstFunction firstFunction, SecondFunction secondFunction, ThirdFunction thirdFunction, RestFunctions... restFunctions) {

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68