Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

STLSetCloner.hh

Go to the documentation of this file.
00001 
00019 #ifndef MANGO_STL_SET_CONTAINER_CLONER_H
00020 #define MANGO_STL_SET_CONTAINER_CLONER_H
00021 
00022 #include "CntrCloner.hh"
00023 #include <set> // specialization
00024 
00025 namespace MangoPtr
00026 {          
00028     template <typename T, typename U, typename V>
00029     struct CntrCloner<std::set<T*, U, V> >
00030     {
00031         typedef std::set<T*,U,V> Set;
00032         static void execute(Set& obj) {CntrClonerSorted<Set>::execute(obj);}
00033     };
00034     
00036     template <typename T, typename U, typename V>
00037     struct CntrCloner<std::multiset<T*, U, V> >
00038     {
00039         typedef std::multiset<T*,U,V> Set;
00040         static void execute(Set& obj) {CntrClonerSorted<Set>::execute(obj);}
00041     };
00042     
00043     /* Specialization for std::hash_set
00044     template <typename T, typename U, typename V, typename W>
00045     struct CntrCloner<hash_set<T*, U, V, W> >
00046     {
00047         typedef hash_set<T*,U,V,W> Set;
00048         static void execute(Set& obj) {CntrClonerSorted<Set>::execute(obj);}
00049     };*/
00050 
00051 } // namespace
00052 
00053 #endif // MANGO_STL_SET_CONTAINER_CLONER_H
00054 

Generated on Tue Nov 12 20:43:53 2002 for Mango-ptr Library by doxygen1.2.18