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

Function tupleApplyFunction

source/core/StarAlgorithm.hpp:518–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516
517template <typename Function, typename Tuple>
518decltype(auto) tupleApplyFunction(Function&& function, Tuple&& args) {
519 return tupleApplyFunctionIndexes<Function, Tuple>(std::forward<Function>(function), std::forward<Tuple>(args),
520 typename GenIndexSequence<0, std::tuple_size<typename std::decay<Tuple>::type>::value>::type());
521}
522
523// Use this version if you do not care about the return value of the function
524// or your function returns void. This version DOES happen in a predictable

Callers 1

TESTFunction · 0.85

Calls 1

typeFunction · 0.50

Tested by 1

TESTFunction · 0.68