
14 Aug
2011
14 Aug
'11
1:26 a.m.
until now I've usually written my own template to do this:
template<typename T>
struct push_back_container:T
{ push_back_container &_push_back(const typename T::value_type &_r)
{ push_back(_r);
return *this;
}
};
one can use this like this:
push_back_container ()._push_back(something1)._push_back(_something2) Is there some more elegant way to do this?
Peter