bsl::operator""_s

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);
» more...

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);
» more...

Create a string from a user-defined string literal.

string
operator""_s(
    char const* characterString,
    std::size_t length);
» more...

Create a wstring from a user-defined string literal.

wstring
operator""_s(
    wchar_t const* characterString,
    std::size_t length);
» more...

Return Value

  • duration representing secs seconds
  • string constructed from the character literal

Parameters

NameDescription
secsnumber of seconds
characterStringpointer to the character sequence
lengthnumber of characters excluding the null terminator