7 ms·
The literal types are optional— they're user-defined literals, which can be written like (say): QString operator""_qs(const char* c_str, size_t len) {
by jeorgun 12y ago
The literal types are optional— they're user-defined literals, which can be written like (say):
QString operator""_qs(const char* c_str, size_t len)
{
return c_str;
}
void foo()
{
auto iama_non_stl_type_ama = "foo"_qs;
}