jeycechen / jeycechen.github.io

just personal blog
0 stars 0 forks source link

c++对象 性能优化 | 冷静一下's bolg #1

Open jeycechen opened 1 month ago

jeycechen commented 1 month ago

https://jeycechen.github.io/2024/08/04/c-%E6%80%A7%E8%83%BD%E4%BC%98%E5%8C%96/?

c++ 对象的优化Test示例1234567891011class Test(){ public: int m_val; Test(int val): m_val(val){} Test(const Test &t):m_val(t.m_val){} //涉及到构造的使用的都是构造函数 void operator=(const

jeycechen commented 1 month ago

评论 test