Public Member Functions | Public Attributes | List of all members
basic_writer< Range >::double_writer Struct Reference

Public Member Functions

size_t size () const
 
size_t width () const
 
template<typename It >
void operator() (It &&it)
 

Public Attributes

size_t n
 
char sign
 
internal::bufferbuffer
 

Detailed Description

template<typename Range>
struct basic_writer< Range >::double_writer

Definition at line 2524 of file format.h.

Member Function Documentation

template<typename Range>
template<typename It >
void basic_writer< Range >::double_writer::operator() ( It &&  it)
inline

Definition at line 2533 of file format.h.

2533  {
2534  if (sign) {
2535  *it++ = static_cast<char_type>(sign);
2536  --n;
2537  }
2538  it = internal::copy_str<char_type>(buffer.begin(), buffer.end(), it);
2539  }
T * begin() FMT_NOEXCEPT
Definition: core.h:246
Range::value_type char_type
Definition: format.h:2261
T * end() FMT_NOEXCEPT
Definition: core.h:247
template<typename Range>
size_t basic_writer< Range >::double_writer::size ( void  ) const
inline

Definition at line 2529 of file format.h.

2529 { return buffer.size() + (sign ? 1 : 0); }
std::size_t size() const FMT_NOEXCEPT
Definition: core.h:250
template<typename Range>
size_t basic_writer< Range >::double_writer::width ( ) const
inline

Definition at line 2530 of file format.h.

2530 { return size(); }
size_t size() const
Definition: format.h:2529

Member Data Documentation

template<typename Range>
internal::buffer& basic_writer< Range >::double_writer::buffer

Definition at line 2527 of file format.h.

template<typename Range>
size_t basic_writer< Range >::double_writer::n

Definition at line 2525 of file format.h.

template<typename Range>
char basic_writer< Range >::double_writer::sign

Definition at line 2526 of file format.h.


The documentation for this struct was generated from the following file: