We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在书中 TextQuery构造函数(建立单词与行号)中 auto &lines = wm[word]; //shared_ptr<set<size_typr>> wm if(!lines) line.reset(new set<size_type>); 我知道shared_ptr默认初始化是空指针 为什么:当word不在map中则对word关联的值进行值初始化,则lines将是空指针
auto &lines = wm[word]; //shared_ptr<set<size_typr>> wm if(!lines) line.reset(new set<size_type>);
word关联的值是 shared_ptr<set<size_typr>>类型值初始化为什么不带有类型呢
The text was updated successfully, but these errors were encountered:
No branches or pull requests
在书中 TextQuery构造函数(建立单词与行号)中
auto &lines = wm[word]; //shared_ptr<set<size_typr>> wm if(!lines) line.reset(new set<size_type>);
我知道shared_ptr默认初始化是空指针
为什么:当word不在map中则对word关联的值进行值初始化,则lines将是空指针
word关联的值是 shared_ptr<set<size_typr>>类型值初始化为什么不带有类型呢
The text was updated successfully, but these errors were encountered: