[#bsl-operator_s-0e87] = xref:bsl.adoc[bsl]::operator""_s :relfileprefix: ../ :mrdocs: `operator""_s` overloads == Synopses Declared in `<bslstl_chrono.h>` Same as the preceding overload, for a `long double` argument. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bsl::chrono::duration<long double> xref:bsl/operator_s-00.adoc[operator""_s](long double secs); ---- [.small]#xref:bsl/operator_s-00.adoc[_» more..._]# Create a `bsl::chrono::duration` object having the `bsl::ratio<1>` duration period and initialized with the specified `secs` number of seconds. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::chrono::seconds xref:bsl/operator_s-0e82.adoc[operator""_s](unsigned long long secs); ---- [.small]#xref:bsl/operator_s-0e82.adoc[_» more..._]# Create a string from a user‐defined string literal. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/string.adoc[string] xref:bsl/operator_s-0f.adoc[operator""_s]( char const* characterString, std::size_t length); ---- [.small]#xref:bsl/operator_s-0f.adoc[_» more..._]# Create a `wstring` from a user‐defined string literal. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/wstring.adoc[wstring] xref:bsl/operator_s-05.adoc[operator""_s]( wchar_t const* characterString, std::size_t length); ---- [.small]#xref:bsl/operator_s-05.adoc[_» more..._]# == Return Value * duration representing `secs` seconds * string constructed from the character literal == Parameters [cols="1,4"] |=== | Name| Description | *secs* | number of seconds | *characterString* | pointer to the character sequence | *length* | number of characters excluding the null terminator |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#