MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / operator ""_s

Function operator ""_s

tests/UserDefinedLiteralTest.cpp:7–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5using seconds_t = std::chrono::seconds;
6
7constexpr seconds_t operator ""_s(unsigned long long s)
8{
9 return seconds_t(s);
10}
11constexpr std::chrono::duration<long double> operator ""_s(long double s)
12{
13 return std::chrono::duration<long double>(s);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected