Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-15 10:26:44

0001 // Range v3 library
0002 //
0003 //  Copyright Eric Niebler 2013-present
0004 //
0005 //  Use, modification and distribution is subject to the
0006 //  Boost Software License, Version 1.0. (See accompanying
0007 //  file LICENSE_1_0.txt or copy at
0008 //  http://www.boost.org/LICENSE_1_0.txt)
0009 //
0010 // Project home: https://github.com/ericniebler/range-v3
0011 //
0012 
0013 #ifndef RANGES_V3_UTILITY_STATIC_CONST_HPP
0014 #define RANGES_V3_UTILITY_STATIC_CONST_HPP
0015 
0016 namespace ranges
0017 {
0018     /// \ingroup group-utility
0019 
0020     template<typename T>
0021     struct static_const
0022     {
0023         static constexpr T value{};
0024     };
0025 
0026     /// \ingroup group-utility
0027     /// \sa `static_const`
0028     template<typename T>
0029     constexpr T static_const<T>::value;
0030 } // namespace ranges
0031 
0032 #endif