openMSX
Public Member Functions | Static Public Attributes | List of all members
strCatImpl::ConcatIntegral< T > Struct Template Reference

#include <strCat.hh>

Public Member Functions

 ConcatIntegral (T t)
 
size_t size () const
 
char * copy (char *dst) const
 
char * copyTail (char *dst, size_t n) const
 
 operator std::string () const
 

Static Public Attributes

static constexpr bool IS_SIGNED = std::numeric_limits<T>::is_signed
 
static constexpr size_t BUF_SIZE = 1 + std::numeric_limits<T>::digits10 + IS_SIGNED
 

Detailed Description

template<std::integral T>
struct strCatImpl::ConcatIntegral< T >

Definition at line 280 of file strCat.hh.

Constructor & Destructor Documentation

◆ ConcatIntegral()

template<std::integral T>
strCatImpl::ConcatIntegral< T >::ConcatIntegral ( t)
inlineexplicit

Definition at line 285 of file strCat.hh.

References strCatImpl::absHelper(), strCatImpl::ConcatIntegral< T >::IS_SIGNED, and t.

Member Function Documentation

◆ copy()

template<std::integral T>
char * strCatImpl::ConcatIntegral< T >::copy ( char *  dst) const
inline

Definition at line 306 of file strCat.hh.

References ranges::copy().

◆ copyTail()

template<std::integral T>
char * strCatImpl::ConcatIntegral< T >::copyTail ( char *  dst,
size_t  n 
) const
inline

Definition at line 312 of file strCat.hh.

References strCatImpl::ConcatIntegral< T >::BUF_SIZE, and ranges::copy().

◆ operator std::string()

template<std::integral T>
strCatImpl::ConcatIntegral< T >::operator std::string ( ) const
inline

Definition at line 319 of file strCat.hh.

References strCatImpl::ConcatIntegral< T >::size().

◆ size()

template<std::integral T>
size_t strCatImpl::ConcatIntegral< T >::size ( ) const
inline

Definition at line 301 of file strCat.hh.

Referenced by strCatImpl::ConcatIntegral< T >::operator std::string().

Member Data Documentation

◆ BUF_SIZE

template<std::integral T>
constexpr size_t strCatImpl::ConcatIntegral< T >::BUF_SIZE = 1 + std::numeric_limits<T>::digits10 + IS_SIGNED
staticconstexpr

Definition at line 283 of file strCat.hh.

Referenced by strCatImpl::ConcatIntegral< T >::copyTail().

◆ IS_SIGNED

template<std::integral T>
constexpr bool strCatImpl::ConcatIntegral< T >::IS_SIGNED = std::numeric_limits<T>::is_signed
staticconstexpr

Definition at line 282 of file strCat.hh.

Referenced by strCatImpl::ConcatIntegral< T >::ConcatIntegral().


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