Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andreasfertig/programming-with-cpp20
/ Send
Function
Send
01.22-validateInDebugModeIfExists0/main.cpp:10–15 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
8
9
template<typename T>
10
void Send(const T& data)
11
{
12
if constexpr(SupportsValidation<T>) { data.validate(); }
13
14
// actual code sending the data
15
}
16
17
class ComplexType {
18
public:
Callers
1
main
Function · 0.70
Calls
1
validate
Method · 0.80
Tested by
no test coverage detected