operator""_s overloads
Synopses
Declared in <bslstl_chrono.h>
Same as the preceding overload, for a long double argument.
constexpr
bsl::chrono::duration<long double>
operator""_s(long double secs);
Create a bsl::chrono::duration object having the bsl::ratio<1> duration period and initialized with the specified secs number of seconds.
constexpr
std::chrono::seconds
operator""_s(unsigned long long secs);
Create a string from a user‐defined string literal.
string
operator""_s(
char const* characterString,
std::size_t length);
Create a wstring from a user‐defined string literal.
wstring
operator""_s(
wchar_t const* characterString,
std::size_t length);
Return Value
-
duration representing
secsseconds -
string constructed from the character literal
Parameters
Name |
Description |
secs |
number of seconds |
characterString |
pointer to the character sequence |
length |
number of characters excluding the null terminator |
Created with MrDocs