Crate despatma[][src]


Despatma is a collection of design pattern macros (despatma). It aims to provide the most common implementations for design patterns at run-time.

This project is still a work in progress. The end goal is to be as Loki is for C++ and more if possible. The following patterns are currently implemented:



Creates an abstract visitor for a list of elements.

Attribute Macros


Turns a trait into an Abstract Factory. The trait can optionally have super-traits.


Expands a list of despatma_lib::TraitSpecifier elements over a template. The TRAIT and CONCRETE markers in the template will be replaced with each passed in element. The template is annotated with this attribute.