C++ STL实现vector
-
详解C++ STL模拟实现vector
目录vector 概述接口总览默认成员函数构造函数析构函数拷贝构造函数复制赋值函数vector 的迭代器元素访问operator[]back容量相关函数sizecapacityemptyresizereserve修改函数insertpush_backerasepop_backswapvector[详细]
2023-01-10 11:17 分类:开发 C++ constructors fun - constructing Foo with a copy of itself
I have: class Foo; class Bar { Foo foo; Bar(): foo(foo) {}; } Bar bar; At this point, is bar.foo // <--- how is this initialized?[详细]
2022-12-21 07:40 分类:问答