c++ - Please help me to understand boost::make_shared
问题描述
I am self-learning C++ and have got a piece of C++ code which reads like:
boost::make_shared<Something<Some_Other_thing> >()
I failed to comprehend what the above line is doing and why it may be required.
What would be an alternative way to achieve the same?
Could you please help me to understand in relatively simple language?
Any pointer will be highly appreciated.
解决方案
推荐阅读
- sql - 改进 SQL 查询连接
- angular - 如何使用带有命名路由器出口的可变路由?
- docker - docker compose nginx 和 tomcat,只在互联网上公开 nginx
- javascript - 如何使用 react-dnd 中的 DragLayer 组件修复 Flow 0.80.0 错误?
- java - 我们可以更改使用 aws DMS 迁移服务迁移的值吗?
- javascript - 使用 Javascript 重用 HTML 块和插入动态内容的正确方法
- ios - 按下播放按钮时,YouTube IFrame 播放器显示“此视频不可用”
- windows - 如何从命令提示符打开目录中的所有文件
- loops - 如何遍历 Svelte 模板中的对象数组?
- excel - 如何使用 Excel VBA 转换定义的名称?