4 回答
TA贡献1816条经验 获得超6个赞
namespace N{
class X {};
void f(X);
X& operator++(X&);}int main(){
// define an object of type X
N::X x;
// apply f to it
N::f(x);
// apply operator++ to it
???}N::operator++(x)operator++(X&)operator++
x++operator++x, N::Xnamespace Noperator++x++operator++N2f(x)N::f(x)main().
TA贡献1847条经验 获得超11个赞
std::vector<boost::shared_ptr<int>> v;auto x = begin(v);
std::beginstd::vectorboost::beginboost::shared_ptr).
- 4 回答
- 0 关注
- 1095 浏览
添加回答
举报
