Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/boost/range/detail/misc_concept.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Boost.Range library concept checks
0002 //
0003 //  Copyright Neil Groves 2009. Use, modification and distribution
0004 //  are subject to the Boost Software License, Version 1.0. (See
0005 //  accompanying file LICENSE_1_0.txt or copy at
0006 //  http://www.boost.org/LICENSE_1_0.txt)
0007 //
0008 #ifndef BOOST_RANGE_DETAIL_MISC_CONCEPT_HPP_INCLUDED
0009 #define BOOST_RANGE_DETAIL_MISC_CONCEPT_HPP_INCLUDED
0010 
0011 #include <boost/concept_check.hpp>
0012 
0013 namespace boost
0014 {
0015     namespace range_detail
0016     {
0017         template<typename T1, typename T2>
0018         class SameTypeConcept
0019         {
0020         public:
0021             BOOST_CONCEPT_USAGE(SameTypeConcept)
0022             {
0023                 same_type(a,b);
0024             }
0025         private:
0026             template<typename T> void same_type(T,T) {}
0027             T1 a;
0028             T2 b;
0029         };
0030     }
0031 }
0032 
0033 #endif // include guard