AFF --- A container for numbers (array) by Friederich and Forbriger.

◆ valmap()

template<template< class > class C, class M >
C<typename M::mapped_type> aff::func::valmap ( const typename C< typename M::key_type >::Tcoc &  c,
const M &  m 
)

Function template to map container contents to values of a different type

Parameters
Cany container class like aff::Array
Ma std::map that defines source and target type
cany container of values to be mapped
Returns
container of same shape as c but with mapped values
See also
aff::func::util::mapvaues, aff::func::util::Mapvalmap

Definition at line 89 of file valmap.h.

References aff::func::util::mapvalues().

91  {
92  typedef typename M::key_type Tinvalue;
93  typedef typename M::mapped_type Toutvalue;
95  util::Mapvalmap<Tinvalue,Toutvalue> >(c,m));
96  } // valmap()
C< typename F::Toutvalue > mapvalues(const typename C< typename F::Tinvalue >::Tcoc &c, const F &exfun)
Definition: mapper.h:67
Here is the call graph for this function: