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

Public Member Functions

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

Public Attributes

char sign
 
const char * str
 

Detailed Description

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

Definition at line 2506 of file format.h.

Member Function Documentation

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

Definition at line 2516 of file format.h.

2516  {
2517  if (sign)
2518  *it++ = static_cast<char_type>(sign);
2519  it = internal::copy_str<char_type>(
2520  str, str + static_cast<std::size_t>(INF_SIZE), it);
2521  }
Range::value_type char_type
Definition: format.h:2261
template<typename Range>
size_t basic_writer< Range >::inf_or_nan_writer::size ( void  ) const
inline

Definition at line 2510 of file format.h.

2510  {
2511  return static_cast<std::size_t>(INF_SIZE + (sign ? 1 : 0));
2512  }
template<typename Range>
size_t basic_writer< Range >::inf_or_nan_writer::width ( ) const
inline

Definition at line 2513 of file format.h.

2513 { return size(); }

Member Data Documentation

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

Definition at line 2507 of file format.h.

template<typename Range>
const char* basic_writer< Range >::inf_or_nan_writer::str

Definition at line 2508 of file format.h.


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