template<typename container=""> class Lock { public: // have been omitted Lock(const Container& container) : c(container){ getMutexFor(c); } ~Lock() { releaseMutexFor(c); } private: const Container& c; };
C++11
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)