rippled
Loading...
Searching...
No Matches
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...

#include <iosformat.h>

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

string_t const text
 
int const width
 
int const pad
 
bool const 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 102 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 105 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 106 of file iosformat.h.

Friends And Related Symbol 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 115 of file iosformat.h.

Member Data Documentation

◆ text

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

Definition at line 110 of file iosformat.h.

◆ width

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

Definition at line 111 of file iosformat.h.

◆ pad

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

Definition at line 112 of file iosformat.h.

◆ right

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

Definition at line 113 of file iosformat.h.