4 #ifndef _iqxmlrpc_util_h_
5 #define _iqxmlrpc_util_h_
9 #include <boost/utility.hpp>
19 public std::unary_function<typename M::value_type, typename M::mapped_type>
22 typename M::mapped_type operator ()(
typename M::value_type& i)
29 void delete_ptrs(Iter first, Iter last)
31 for(; first != last; ++first)
35 template <
class Iter,
class AccessOp>
36 void delete_ptrs(Iter first, Iter last, AccessOp op)
38 for(; first != last; ++first)
81 typename Lock::scoped_lock lk(lock);
85 void operator =(
bool b)
87 typename Lock::scoped_lock lk(lock);