rippled
Public Types | Public Member Functions | Public Attributes | Friends | List of all members
beast::field_t< CharT, Traits, Allocator > Class Template Reference

Justifies a field at the specified width. More...

Collaboration diagram for beast::field_t< CharT, Traits, Allocator >:
Collaboration graph
[legend]

Public Types

using string_t = std::basic_string< CharT, Traits, Allocator >
 

Public Member Functions

 field_t (string_t const &text_, int width_, int pad_, bool right_)
 

Public Attributes

const string_t text
 
const int width
 
const int pad
 
const bool right
 

Friends

template<class CharT2 , class Traits2 >
std::basic_ostream< CharT2, Traits2 > & operator<< (std::basic_ostream< CharT2, Traits2 > &os, field_t< CharT, Traits, Allocator > const &f)
 

Detailed Description

template<class CharT, class Traits = std::char_traits<CharT>, class Allocator = std::allocator<CharT>>
class beast::field_t< CharT, Traits, Allocator >

Justifies a field at the specified width.

Definition at line 121 of file iosformat.h.

Member Typedef Documentation

◆ string_t

template<class CharT , class Traits = std::char_traits<CharT>, class Allocator = std::allocator<CharT>>
using beast::field_t< CharT, Traits, Allocator >::string_t = std::basic_string<CharT, Traits, Allocator>

Definition at line 124 of file iosformat.h.

Constructor & Destructor Documentation

◆ field_t()

template<class CharT , class Traits = std::char_traits<CharT>, class Allocator = std::allocator<CharT>>
beast::field_t< CharT, Traits, Allocator >::field_t ( string_t const &  text_,
int  width_,
int  pad_,
bool  right_ 
)

Definition at line 125 of file iosformat.h.

Friends And Related Function Documentation

◆ operator<<

template<class CharT , class Traits = std::char_traits<CharT>, class Allocator = std::allocator<CharT>>
template<class CharT2 , class Traits2 >
std::basic_ostream<CharT2, Traits2>& operator<< ( std::basic_ostream< CharT2, Traits2 > &  os,
field_t< CharT, Traits, Allocator > const &  f 
)
friend

Definition at line 135 of file iosformat.h.

Member Data Documentation

◆ text

template<class CharT , class Traits = std::char_traits<CharT>, class Allocator = std::allocator<CharT>>
const string_t beast::field_t< CharT, Traits, Allocator >::text

Definition at line 129 of file iosformat.h.

◆ width

template<class CharT , class Traits = std::char_traits<CharT>, class Allocator = std::allocator<CharT>>
const int beast::field_t< CharT, Traits, Allocator >::width

Definition at line 130 of file iosformat.h.

◆ pad

template<class CharT , class Traits = std::char_traits<CharT>, class Allocator = std::allocator<CharT>>
const int beast::field_t< CharT, Traits, Allocator >::pad

Definition at line 131 of file iosformat.h.

◆ right

template<class CharT , class Traits = std::char_traits<CharT>, class Allocator = std::allocator<CharT>>
const bool beast::field_t< CharT, Traits, Allocator >::right

Definition at line 132 of file iosformat.h.