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...

Convert a character sequence of the specified length excluding the terminating null character starting at the beginning of the specified characterString to a string object of the indicated return type. Use the bslma::Default::defaultAllocator() to supply memory. (See the "User-Defined Literals" section in the component-level documentation.)

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

User-defined literal creating a wstring from the specified characterString of the specified length.

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