Struct strtol
Struct strtol
boost::cnv::strtol — std::strtol-based extended converter
Synopsis
struct strtol : public boost :: cnv :: cnvbase < boost :: cnv :: strtol > {
typedef boost::cnv::strtol this_type ;
typedef boost::cnv::cnvbase < this_type > base_type ;
template < typename string_type>
void str_to ( cnv :: range < string_type > , optional < int_type > & ) const ;
template < typename string_type>
void str_to ( cnv :: range < string_type > , optional < sint_type > & ) const ;
template < typename string_type>
void str_to ( cnv :: range < string_type > , optional < lint_type > & ) const ;
template < typename string_type>
void str_to ( cnv :: range < string_type > , optional < llint_type > & ) const ;
template < typename string_type>
void str_to ( cnv :: range < string_type > , optional < uint_type > & ) const ;
template < typename string_type>
void str_to ( cnv :: range < string_type > , optional < usint_type > & ) const ;
template < typename string_type>
void str_to ( cnv :: range < string_type > , optional < ulint_type > & ) const ;
template < typename string_type>
void str_to ( cnv :: range < string_type > , optional < ullint_type > & ) const ;
template < typename string_type>
void str_to ( cnv :: range < string_type > , optional < flt_type > & ) const ;
template < typename string_type>
void str_to ( cnv :: range < string_type > , optional < dbl_type > & ) const ;
template < typename string_type>
void str_to ( cnv :: range < string_type > , optional < ldbl_type > & ) const ;
template < typename char_type>
cnv :: range < char_type * > to_str ( int_type , char_type * ) const ;
template < typename char_type>
cnv :: range < char_type * > to_str ( uint_type , char_type * ) const ;
template < typename char_type>
cnv :: range < char_type * > to_str ( lint_type , char_type * ) const ;
template < typename char_type>
cnv :: range < char_type * > to_str ( ulint_type , char_type * ) const ;
template < typename char_type>
cnv :: range < char_type * > to_str ( llint_type , char_type * ) const ;
template < typename char_type>
cnv :: range < char_type * > to_str ( ullint_type , char_type * ) const ;
template < typename char_type>
cnv :: range < char_type * > to_str ( dbl_type , char_type * ) const ;
template < typename char_type, typename in_type>
cnv :: range < char_type * > i_to_str ( in_type , char_type * ) const ;
template < typename string_type, typename out_type>
void str_to_i ( cnv :: range < string_type > , optional < out_type > & ) const ;
template < typename string_type, typename out_type>
void str_to_d ( cnv :: range < string_type > , optional < out_type > & ) const ;
static double adjust_fraction ( double , int ) ;
static int get_char ( int ) ;
template < typename char_type, typename Type>
boost :: cnv :: range < char_type * > i_to_str ( Type , char_type * ) const ;
template < typename char_type>
boost :: cnv :: range < char_type * > to_str ( double , char_type * ) const ;
template < typename string_type, typename out_type>
void str_to_i ( cnv :: range < string_type > , boost :: optional < out_type > & ) const ;
} ;
Description
Конвертер предлагает довольно приличную общую производительность и умеренные возможности форматирования.
strtol
private member functions
>>>> str_to ( cnv >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><2>>>>>>>>>>>>>>>>>>>>><2>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>> str_to >> >>>> 2> > >> > >>>> >>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>
>>>>>str_to >>> >>>>>>str_to>>, > >>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>str_to >> >>>>>str_to >>, >> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>str_to >> >>>>>>str_to >>, >> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>> str_to >> >>>> str_to >>, > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>str_to >> >>>>>>str_to >>, > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>str_to >> >>>>> str_to >, > >>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>str_to >> >>>>> str_to >>, > >>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>
>>>>>>>str_to > >>>>>>>>>>>>> >>> >>>> >>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>> >>>>>>>>>>>> >>> >>>>> >> >>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><2>>>>>>>>>>>>>>>
template < typename char_type> cnv :: range < char_type > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><
template < typename char_type> cnv :: range < char_type 2> > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
template < typename char_type> cnv :: range< char_type 2> > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
template < typename char_type> cnv :: range < char_type > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
template < typename char_type> cnv :: < char_type > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
template < typename char_type> cnv :: range < char_type > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
template < typename char_type> cnv :: < char_type > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>2>>>>>>>>>>2>>>> > >>2>>28>28>13>i_to_str > >> >>>>>>>>>>>>> >>>>>>>>2>>> >>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
strtol
private static functions
статический дп коррект_fraction ( дп , инт ) ;
статический int get_char ( int v) ;
strtol
public member functions
>>>>>>>>>>>>>>>> >>>>>>>>>> >>>>>>>>>>>>>> >>>> >>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
template < typename char_type> boost :: cnv :: range < char_type > > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Статья Struct strtol раздела Chapter 1. Boost.Convert 2.0 Header <boost/convert/strtol.hpp> может быть полезна для разработчиков на c++ и boost.
Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.
:: Главная :: Header <boost/convert/strtol.hpp> ::