B
barcaroller
What are proxy objects used for in C++? Currently, the only use of proxy
objects I know of is that one can write one-liner code such as:
myobj.foo() (a,b) (c,d) (e,f) ;
where myobj.foo() returns a proxy object with an overloaded operator()
member function, which returns a reference to the proxy object itself. But
writing one-liners cannot be reason enough to use proxy objects.
objects I know of is that one can write one-liner code such as:
myobj.foo() (a,b) (c,d) (e,f) ;
where myobj.foo() returns a proxy object with an overloaded operator()
member function, which returns a reference to the proxy object itself. But
writing one-liners cannot be reason enough to use proxy objects.