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::X
namespace N
operator++
x++
operator++
N2
f(x)
N::f(x)
main()
.
TA贡献1847条经验 获得超11个赞
std::vector<boost::shared_ptr<int>> v;auto x = begin(v);
std::begin
std::vector
boost::begin
boost::shared_ptr
).
- 4 回答
- 0 关注
- 988 浏览
添加回答
举报