New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
misc_concept.hpp in vendors/XIOS/current/extern/boost/include/boost/range/detail – NEMO

source: vendors/XIOS/current/extern/boost/include/boost/range/detail/misc_concept.hpp @ 3428

Last change on this file since 3428 was 3428, checked in by rblod, 12 years ago

importing initial XIOS vendor drop

File size: 822 bytes
Line 
1// Boost.Range library concept checks
2//
3//  Copyright Neil Groves 2009. Use, modification and distribution
4//  are subject to the Boost Software License, Version 1.0. (See
5//  accompanying file LICENSE_1_0.txt or copy at
6//  http://www.boost.org/LICENSE_1_0.txt)
7//
8#ifndef BOOST_RANGE_DETAIL_MISC_CONCEPT_HPP_INCLUDED
9#define BOOST_RANGE_DETAIL_MISC_CONCEPT_HPP_INCLUDED
10
11#include <boost/concept_check.hpp>
12
13namespace boost
14{
15    namespace range_detail
16    {
17        template<typename T1, typename T2>
18        class SameTypeConcept
19        {
20        public:
21            BOOST_CONCEPT_USAGE(SameTypeConcept)
22            {
23                same_type(a,b);
24            }
25        private:
26            template<typename T> void same_type(T,T) {}
27            T1 a;
28            T2 b;
29        };
30    }
31}
32
33#endif // include guard
Note: See TracBrowser for help on using the repository browser.