[boost-users] pointers container library generic function.
20 Nov
2007
20 Nov
'07
9:36 p.m.
HI i would I write a generic function as template parameter that accepts any kind of boost pointers containers library. like for example. template <typename T, template <typename ELEM, typename = std::allocator<ELEM> > class CONT
extern typename boost::enable_if<boost::mpl::or_<boost::is_integral<T>, boost::is_convertible<T, unsigned long> >, CONT<T> >::type str_to_numlist(const std::string&, const T&); accept any vector, list, deque.. i want to replace vector list, deque with ptr_vector, ptr_list, ptr_deque.. etc.
6149
Age (days ago)
6149
Last active (days ago)
0 comments
1 participants
participants (1)
-
chun ping wang