tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
basic_format_context< OutputIt, CharT > Struct Template Reference

Provides access to formatting state consisting of the formatting arguments and the output iterator. More...

#include <basic_format_context.hpp>

Public Types

using char_type = CharT
 
template<typename T>
using formatter_type = formatter<T, CharT>
 
using iterator = OutputIt
 

Public Member Functions

constexpr basic_format_context (OutputIt pos) noexcept
 
constexpr auto advance_to (iterator it) noexcept -> void
 Sets the output iterator to it. After a call to advance_to, subsequent calls to out() will return a copy of it.
 
constexpr auto out () noexcept -> iterator
 Returns the iterator to the output buffer.
 

Detailed Description

template<typename OutputIt, typename CharT>
struct etl::basic_format_context< OutputIt, CharT >

Provides access to formatting state consisting of the formatting arguments and the output iterator.

The behavior is undefined if OutputIt does not model output_iterator<const CharT&>.

https://en.cppreference.com/w/cpp/utility/format/basic_format_context

Member Typedef Documentation

◆ char_type

template<typename OutputIt, typename CharT>
using char_type = CharT

◆ formatter_type

template<typename OutputIt, typename CharT>
template<typename T>
using formatter_type = formatter<T, CharT>

◆ iterator

template<typename OutputIt, typename CharT>
using iterator = OutputIt

Constructor & Destructor Documentation

◆ basic_format_context()

template<typename OutputIt, typename CharT>
basic_format_context ( OutputIt pos)
inlineexplicitconstexprnoexcept

Member Function Documentation

◆ advance_to()

template<typename OutputIt, typename CharT>
auto advance_to ( iterator it) -> void
inlineconstexprnoexcept

Sets the output iterator to it. After a call to advance_to, subsequent calls to out() will return a copy of it.

◆ out()

template<typename OutputIt, typename CharT>
auto out ( ) -> iterator
inlinenodiscardconstexprnoexcept

Returns the iterator to the output buffer.


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