MCPcopy Create free account
hub / github.com/0voice/cpp_new_features / construct

Function construct

cpp_11/002_grammar_SFINAE.cpp:12–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10// enabled via the return type
11template<class T,class... Args>
12typename std::enable_if<std::is_trivially_constructible<T,Args&&...>::value>::type
13 construct(T* t,Args&&... args)
14{
15 std::cout << "constructing trivially constructible T\n";
16}
17
18// enabled via a parameter
19template<class T>

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected