DGtal  1.5.beta
DGtal::StdMapRebinder Struct Reference

#include <DGtal/base/StdRebinders.h>

Data Structures

struct  Rebinder
 

Detailed Description

Rebinder for map type std::map. Use inner type Type. Useful when passing a templated map type as a template argument.

template <typename TMap>
class Example {
struct Key { ... };
struct Node { ... };
typedef typename TMap:: template Rebinder<Key, Node>::Type MapKeyToNode;
...
MapKeyToNode myMap;
};
main()
{
Example<StdMapRebinder> example;
...
}
void example()
We use FMM to compute a distance field from a given point.
std::map< Key, Value > Type
Definition: StdRebinders.h:76
int main(int argc, char **argv)

Definition at line 72 of file StdRebinders.h.


The documentation for this struct was generated from the following file: