Chris@16: // Copyright David Abrahams 2006. Distributed under the Boost Chris@16: // Software License, Version 1.0. (See accompanying Chris@16: // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: #ifndef BOOST_CONCEPT_DETAIL_CONCEPT_DEF_DWA200651_HPP Chris@16: # define BOOST_CONCEPT_DETAIL_CONCEPT_DEF_DWA200651_HPP Chris@16: # include Chris@16: # include Chris@16: # include Chris@16: # include Chris@16: #endif // BOOST_CONCEPT_DETAIL_CONCEPT_DEF_DWA200651_HPP Chris@16: Chris@16: // BOOST_concept(SomeName, (p1)(p2)...(pN)) Chris@16: // Chris@16: // Expands to "template struct SomeName" Chris@16: // Chris@16: // Also defines an equivalent SomeNameConcept for backward compatibility. Chris@16: // Maybe in the next release we can kill off the "Concept" suffix for good. Chris@16: # define BOOST_concept(name, params) \ Chris@16: template < BOOST_PP_SEQ_FOR_EACH_I(BOOST_CONCEPT_typename,~,params) > \ Chris@16: struct name; /* forward declaration */ \ Chris@16: \ Chris@16: template < BOOST_PP_SEQ_FOR_EACH_I(BOOST_CONCEPT_typename,~,params) > \ Chris@16: struct BOOST_PP_CAT(name,Concept) \ Chris@16: : name< BOOST_PP_SEQ_ENUM(params) > \ Chris@16: { \ Chris@16: }; \ Chris@16: \ Chris@16: template < BOOST_PP_SEQ_FOR_EACH_I(BOOST_CONCEPT_typename,~,params) > \ Chris@16: struct name Chris@16: Chris@16: // Helper for BOOST_concept, above. Chris@16: # define BOOST_CONCEPT_typename(r, ignored, index, t) \ Chris@16: BOOST_PP_COMMA_IF(index) typename t Chris@16: