Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Extra-Creativity/Modern-Cpp-Basics
/ A
Class
A
12-Advanced Template/code/NTTP.cpp:27–31 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
25
26
template<std::invocable auto Callable>
27
class A
28
{
29
public:
30
constexpr decltype(auto) operator()() { return Callable(); }
31
};
32
33
int main()
34
{
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected