为什么没有任何std :: stoui?

Dra*_*rax 7 c++ stl c++11

从c ++ 11开始,<string>标头提供:

从转换为std::string有符号整数。

我们也有他们的未签名副本:

现在,即使是一个孩子,也会注意到某些东西丢失了吗?:)

因此问题是:是否有理由不提供std::stoui或仅仅是被遗忘的东西(基本上,这种“显而易见的”东西怎么会被遗忘)?

此外,是否意味着将一个正确的方式std::stringunsigned int为:

unsigned int ui = static_cast<unsigned int>(std::stoul(std::string{"42"}));
Run Code Online (Sandbox Code Playgroud)