Boost logo

Boost :

From: Stefan Slapeta (stefan_at_[hidden])
Date: 2005-01-26 10:48:41


Hi all,

do we have a non-member reset() somewhere? Something like

template <typename T>
void reset(T& t)
{
     std::swap(t, T());
}

(of course to be refined...)

Stefan


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk