C++中的运算符“”是什么?

What is the operator "" in C++?

我在 this page 上找到了作者谈论 运算符标准化的地方 "":

The decision of the C++ standards committee to standardise operator "" was [...]

he/she在说什么?我找不到任何关于这个的信息,我不明白它可能意味着什么(常量字符串重载?或者更概念化的东西,不影响语言的最终使用?)

那些是user-defined literals。它们允许您在适当的位置创建 std::stringstd::chrono::durations 或任何用户定义的类型(您可以创建自己的文字):

auto str = "Hello"s; // str is std::string("Hello")
auto sec = 5s;       // sec is 5 std::chrono::seconds

标准库提供的文字运算符列表及其文档可以在我链接的文档页面底部找到。

user-defined literal operator 允许在现有文字的基础上引入新的文字语法。

有关详细信息,请显示 this reference link