MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / Normalize

Function Normalize

tests/TemplateArgumentsTest.cpp:4–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include <string>
3template<typename T>
4static inline decltype(auto) Normalize(const T& arg)
5{
6 if constexpr(std::is_same_v<T, std::string>) {
7 return arg.c_str();
8 } else {
9 return arg;
10 }
11}
12
13template<typename... Ts>
14void Log(const char* fmt, const Ts&... ts)

Callers 1

LogFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected