Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 10:10:27

0001 /*
0002 Copyright 2018 Glen Joseph Fernandes
0003 (glenjofe@gmail.com)
0004 
0005 Distributed under the Boost Software License, Version 1.0.
0006 (http://www.boost.org/LICENSE_1_0.txt)
0007 */
0008 #ifndef BOOST_TYPEOF_CONSTANT_HPP
0009 #define BOOST_TYPEOF_CONSTANT_HPP
0010 
0011 #include <boost/config.hpp>
0012 
0013 namespace boost {
0014 namespace type_of {
0015 
0016 template<class T, T N>
0017 struct constant {
0018     typedef constant<T, N> type;
0019     typedef constant<T, N + 1> next;
0020     BOOST_STATIC_CONSTANT(T, value=N);
0021 };
0022 
0023 } /* type_of */
0024 } /* boost */
0025 
0026 #endif