For test

by Nounoob on March 11th, 2010
No notes
Syntax: No syntax
Show lines - Hide lines - Show in textbox - Download
    template<int i, class Instance, class Method, class Parameters>
    class For
    {
    public:
        static inline void Execute()
        {
            Instance.Method(Parameters);
            For< i - 1 >::Execute();
        }
    };
 
    template<0, class Instance, class Method, class Parameters>
    class For
    {
    public:
        static inline void Execute()
        {
            Instance.Method(Parameters);
        }
    };

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS