Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:29:47

0001 //  (C) Copyright Howard Hinnant
0002 //  (C) Copyright 2011 Vicente J. Botet Escriba
0003 //  Use, modification and distribution are subject to the Boost Software License,
0004 //  Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0005 //  http://www.boost.org/LICENSE_1_0.txt).
0006 //
0007 // This code was adapted by Vicente from Howard Hinnant's experimental work
0008 // on chrono i/o to Boost
0009 
0010 #ifndef BOOST_CHRONO_IO_DURATION_STYLE_HPP
0011 #define BOOST_CHRONO_IO_DURATION_STYLE_HPP
0012 
0013 #include <boost/core/scoped_enum.hpp>
0014 
0015 namespace boost
0016 {
0017   namespace chrono
0018   {
0019     /**
0020      * Scoped enumeration emulation stating whether the duration I/O style is long or short.
0021      * prefix means duration::rep with whatever stream/locale settings are set for it followed by a long name representing the unit
0022      * symbol means duration::rep with whatever stream/locale settings are set for it followed by a SI unit abbreviation
0023      */
0024     BOOST_SCOPED_ENUM_DECLARE_BEGIN(duration_style)
0025           {
0026             prefix, symbol
0027           }
0028     BOOST_SCOPED_ENUM_DECLARE_END(duration_style)
0029 
0030 
0031   } // chrono
0032 
0033 }
0034 
0035 #endif  // header