博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
内联析构函数
阅读量:4106 次
发布时间:2019-05-25

本文共 199 字,大约阅读时间需要 1 分钟。

#include<iostream>

using namespace std;
class A
{
public:
void foo()
{
cout << "A";
}
~A();
};
inline A::~A()
{
cout << "inline";
}
int main()
{
A *niu = new A();
niu ->foo();
delete niu;
return 0;
}

转载地址:http://rsjsi.baihongyu.com/

你可能感兴趣的文章
Git push与pull的默认行为
查看>>
自动化发布-GitLab WEB Hooks 配置
查看>>
Android性能优化实战前篇
查看>>
微信网页第三方登录原理
查看>>
使用Sublime Text3+Ctags+Cscope替代Source Insight
查看>>
git reset revert 回退回滚取消提交返回上一版本
查看>>
Android Studio插件整理
查看>>
微信开放平台开发——网页微信扫码登录(OAuth2.0)
查看>>
PHP微信第三方扫码登录技术问题
查看>>
C++11带来的优雅语法
查看>>
CentOS7 安装 KVM
查看>>
CentOS 7 下配置KVM
查看>>
CentOS 7 清除旧内核
查看>>
CentOS 7 使用阿里云的yum源
查看>>
php-fpm的配置和优化
查看>>
php-fpm 与 Nginx优化总结
查看>>
实时查看及监控PHP-FPM的运行状态
查看>>
阿里云CentOS7挂载SSD云盘的方法
查看>>
CentOS 7 NFS服务器和客户端设置
查看>>
git 打标签并推送tag到托管服务器
查看>>