Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Class template subsecond_duration

Boost , The Boost C++ Libraries BoostBook Documentation Subset , Library Reference

Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Class template subsecond_duration

boost::date_time::subsecond_duration — Template for instantiating derived adjusting durations.

Synopsis

// In header: <boost/date_time/time_duration.hpp>
template<typename base_duration, boost::int64_t frac_of_second> 
class subsecond_duration : public base_duration {
public:
  // types
  typedef base_duration::impl_type   impl_type;  
  typedef base_duration::traits_type traits_type;
  // construct/copy/destruct
  explicit subsecond_duration(boost::int64_t);
  // private member functions
   BOOST_STATIC_ASSERT_MSG((traits_type::ticks_per_second >=frac_of_second?traits_type::ticks_per_second%frac_of_second:frac_of_second%traits_type::ticks_per_second) = =0, 
                           \"The base duration resolution must be a multiple of the subsecond duration resolution");
   BOOST_STATIC_CONSTANT(boost::int64_t, 
                         adjustment_ratio = (traits_type::ticks_per_second >=frac_of_second?traits_type::ticks_per_second/frac_of_second:frac_of_second/traits_type::ticks_per_second));
};

Description

subsecond_duration public construct/copy/destruct

  1. <
    explicitsubsecond_duration(boost::int64_tss);
    >

subsecond_duration private member functions

  1. <
    BOOST_STATIC_ASSERT_MSG((traits_type::ticks_per_second>=frac_of_second?traits_type::ticks_per_second%frac_of_second:frac_of_second%traits_type::ticks_per_second)==0,
                             \"The base duration resolution must be a multiple of the subsecond duration resolution");
    >
  2. <
    BOOST_STATIC_CONSTANT(boost::int64_t,
                          adjustment_ratio=(traits_type::ticks_per_second>=frac_of_second?traits_type::ticks_per_second/frac_of_second:frac_of_second/traits_type::ticks_per_second));
    >

PrevUpHomeNext

Статья Class template subsecond_duration раздела The Boost C++ Libraries BoostBook Documentation Subset Library Reference может быть полезна для разработчиков на c++ и boost.




Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



:: Главная :: Library Reference ::


реклама


©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
Top.Mail.Ru

Время компиляции файла: 2024-08-30 11:47:00
2025-07-05 08:56:45/0.0060551166534424/0