Boost logo

Boost Users :

From: chun ping wang (cablepuff_at_[hidden])
Date: 2007-11-20 16:36:00


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.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net