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

Class construct

source/core/StarAlgorithm.hpp:13–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11// Functional constructor call / casting.
12template <typename ToType>
13struct construct {
14 template <typename... FromTypes>
15 ToType operator()(FromTypes&&... fromTypes) const {
16 return ToType(std::forward<FromTypes>(fromTypes)...);
17 }
18};
19
20struct identity {
21 template <typename U>

Callers 1

ChatMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected