我需要检查std:字符串是否以"xyz"开头.如何在不搜索整个字符串或使用substr()创建临时字符串的情况下执行此操作.
c++ string stl compare
c++ ×1
compare ×1
stl ×1
string ×1