jaulib v1.4.1-14-g15926ba
Jau Support Library (C++, Java, ..)
Loading...
Searching...
No Matches
jau::cfmt::impl::NullOutput Class Reference

A null OutputType for constexpr and consteval formatting dropping all output. More...

#include <string_cfmt.hpp>

Collaboration diagram for jau::cfmt::impl::NullOutput:

Public Member Functions

constexpr NullOutput () noexcept=default
 
constexpr void appendError (size_t, int, const std::string_view) noexcept
 
template<typename T>
requires jau::req::stringifyable_jau<T>
constexpr void appendFormatted (const FormatOpts &, const T &) noexcept
 
template<typename T>
requires std::is_floating_point_v<T>
constexpr void appendFormattedFloat (const FormatOpts &, const T &, nsize_t) noexcept
 
template<typename T>
requires jau::req::unsigned_integral<T> && (!jau::req::boolean<T>)
constexpr void appendFormattedInt (const FormatOpts &, const T &, bool) noexcept
 
constexpr void appendText (std::string_view) noexcept
 
constexpr bool fits (size_t) const noexcept
 
std::string_view get () const noexcept
 
constexpr size_t maxLen () const noexcept
 

Detailed Description

A null OutputType for constexpr and consteval formatting dropping all output.

Definition at line 603 of file string_cfmt.hpp.

Constructor & Destructor Documentation

◆ NullOutput()

jau::cfmt::impl::NullOutput::NullOutput ( )
constexprdefaultnoexcept

Member Function Documentation

◆ maxLen()

size_t jau::cfmt::impl::NullOutput::maxLen ( ) const
inlineconstexprnoexcept

Definition at line 607 of file string_cfmt.hpp.

Here is the caller graph for this function:

◆ fits()

bool jau::cfmt::impl::NullOutput::fits ( size_t ) const
inlineconstexprnoexcept

Definition at line 608 of file string_cfmt.hpp.

◆ get()

std::string_view jau::cfmt::impl::NullOutput::get ( ) const
inlinenoexcept

Definition at line 610 of file string_cfmt.hpp.

◆ appendFormatted()

template<typename T>
requires jau::req::stringifyable_jau<T>
void jau::cfmt::impl::NullOutput::appendFormatted ( const FormatOpts & ,
const T &  )
inlineconstexprnoexcept

Definition at line 614 of file string_cfmt.hpp.

◆ appendFormattedInt()

template<typename T>
requires jau::req::unsigned_integral<T> && (!jau::req::boolean<T>)
void jau::cfmt::impl::NullOutput::appendFormattedInt ( const FormatOpts & ,
const T & ,
bool  )
inlineconstexprnoexcept

Definition at line 618 of file string_cfmt.hpp.

◆ appendFormattedFloat()

template<typename T>
requires std::is_floating_point_v<T>
void jau::cfmt::impl::NullOutput::appendFormattedFloat ( const FormatOpts & ,
const T & ,
nsize_t  )
inlineconstexprnoexcept

Definition at line 622 of file string_cfmt.hpp.

◆ appendText()

void jau::cfmt::impl::NullOutput::appendText ( std::string_view )
inlineconstexprnoexcept

Definition at line 624 of file string_cfmt.hpp.

◆ appendError()

void jau::cfmt::impl::NullOutput::appendError ( size_t ,
int ,
const std::string_view  )
inlineconstexprnoexcept

Definition at line 625 of file string_cfmt.hpp.


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