Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ptr_map_inserter.hpp File Reference
#include <boost/assign/list_inserter.hpp>
#include <boost/type_traits/remove_reference.hpp>
#include <boost/type_traits/remove_pointer.hpp>
#include <BOOST_PP_LOCAL_ITERATE()>
Include dependency graph for ptr_map_inserter.hpp:

Classes

class  boost::assign::ptr_map_inserter< PtrMap, Obj >
 

Namespaces

 boost
 Duration formatting facet for input.
 
 boost::assign
 

Macros

#define BOOST_ASSIGN_MAX_PARAMS   6
 
#define BOOST_ASSIGN_MAX_PARAMETERS   (BOOST_ASSIGN_MAX_PARAMS - 1)
 
#define BOOST_ASSIGN_PARAMS1(n)   BOOST_PP_ENUM_PARAMS(n, class T)
 
#define BOOST_ASSIGN_PARAMS2(n)   BOOST_PP_ENUM_BINARY_PARAMS(n, T, const& t)
 
#define BOOST_ASSIGN_PARAMS3(n)   BOOST_PP_ENUM_PARAMS(n, t)
 
#define BOOST_PP_LOCAL_LIMITS   (1, BOOST_ASSIGN_MAX_PARAMETERS)
 
#define BOOST_PP_LOCAL_MACRO(n)
 

Functions

template<class PtrMap >
ptr_map_inserter< PtrMap,
typename
PtrMap::mapped_reference > 
boost::assign::ptr_map_insert (PtrMap &m)
 
template<class T , class PtrMap >
ptr_map_inserter< PtrMap, Tboost::assign::ptr_map_insert (PtrMap &m)
 

Macro Definition Documentation

#define BOOST_ASSIGN_MAX_PARAMETERS   (BOOST_ASSIGN_MAX_PARAMS - 1)
#define BOOST_ASSIGN_MAX_PARAMS   6
#define BOOST_ASSIGN_PARAMS1 (   n)    BOOST_PP_ENUM_PARAMS(n, class T)
#define BOOST_ASSIGN_PARAMS2 (   n)    BOOST_PP_ENUM_BINARY_PARAMS(n, T, const& t)
#define BOOST_ASSIGN_PARAMS3 (   n)    BOOST_PP_ENUM_PARAMS(n, t)
#define BOOST_PP_LOCAL_LIMITS   (1, BOOST_ASSIGN_MAX_PARAMETERS)
#define BOOST_PP_LOCAL_MACRO (   n)
Value:
template< class T, BOOST_ASSIGN_PARAMS1(n) > \
ptr_map_inserter& operator()( const T& t, BOOST_ASSIGN_PARAMS2(n) ) \
{ \
key_type k(t); \
m_.insert( k, new obj_type( BOOST_ASSIGN_PARAMS3(n) ) ); \
return *this; \
} \
T
Definition: mem_fn_cc.hpp:25
#define n
Definition: register_functions_iterate.hpp:7
#define BOOST_ASSIGN_PARAMS3(n)
Definition: ptr_map_inserter.hpp:56
in t
Definition: flyweight.hpp:430
#define BOOST_ASSIGN_PARAMS2(n)
Definition: ptr_map_inserter.hpp:55
result_type operator()()
Definition: bind_template.hpp:17