Template Metafunction And

Template metafunction who performs a logical and against its inputs.

 namespace framework {
 namespace meta
 {
    template <bool C0, bool C1> struct and_ { enum { value = false }; };
    template <> struct and_<true, true> { enum { value = true }; };

} // namespace meta } // namespace framework

For an example, see TemplateMetafunctionHasFunction.


TemplateMetaprogrammingTechniques TemplateMetafunctionHasFunction CategoryCppTemplates


EditText of this page (last edited May 29, 2006) or FindPage with title or text search