我可以为 std 命名空间添加推导指南吗?
Can I add a deduction guide to `std` namespace?
假设我想制作一个新的演绎指南,使以下内容成为可能?
std::string str;
std::basic_string_view sv = str;
这样定制好吗?
The behavior of a C++ program is undefined if it declares [...] a
deduction guide for any standard library class template.
假设我想制作一个新的演绎指南,使以下内容成为可能?
std::string str;
std::basic_string_view sv = str;
这样定制好吗?
The behavior of a C++ program is undefined if it declares [...] a deduction guide for any standard library class template.