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

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Struct duration_traits_long

boost::date_time::duration_traits_long

Synopsis

// In header: <boost/date_time/date_duration.hpp>


struct duration_traits_long {
  // types
  typedef long int_type; 
  typedef long impl_type;

  // public static functions
  static BOOST_CXX14_CONSTEXPR int_type as_number(impl_type);
};

Description

Struct for instantiating date_duration with NO special values functionality. Allows for transparent implementation of either date_duration<long> or date_duration<int_adapter<long> >

duration_traits_long public static functions

  1. static BOOST_CXX14_CONSTEXPR int_type as_number(impl_type i);

PrevUpHomeNext