Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
std::wstringがnullまたは空かどうかを確認するにはどうすればよいですか?
std::wstring
wstringはポインタではなく、nullにすることはできません。""前のものと直接比較するか、次の方法で、空であるかどうか(つまり、と同等であるかどうか)を確認できます。
wstring
""
str.empty(); // == (str.size() == 0)