MCPcopy 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
9template<typename T>
10void Send(const T& data)
11{
12 if constexpr(SupportsValidation<T>) { data.validate(); }
13
14 // actual code sending the data
15}
16
17class ComplexType {
18public:

Callers 1

mainFunction · 0.70

Calls 1

validateMethod · 0.80

Tested by

no test coverage detected