As far as I have found,
#include & lt; Boost /mpl / list.hpp & gt; # Include & lt; Algorithm & gt; Namespace mpl = boost :: mpl; Square run round {}; Square HopUpAndDown {}; Class sleep {}; Template & lt; Typename instructions & gt; Int doThis (); The template's & lt; & Gt; Int doThis & lt; RunAround & gt; () Runs Run * * / Return 3; } Template & lt; & Gt; Let's go & lt; HopUpAndDown & gt; () {/ * Hop hop hop .. * / return2; } Template & lt; & Gt; Int doThis & lt; Sleep & gt; () {/ * Zzz .. * / return -2; } Int main () {typedef ml :: list & amp;; RunAround; HopUpAndDown, Sleep & gt; works; // std :: for_each (ml :: start & lt; functions & gt; :: type, amplly :: end & gt; function & gt; :: type, doThis & lt; ???? & gt;); Return 0; };
How do I complete this? (I do not know that I should use std :: for_each, only one estimate is based on the second answer)
Use for runtime rehearsal on type list. Example:
struct do_this_wrapper {template
Comments
Post a Comment