Tinker9 70bd052 (Thu Nov 9 12:11:35 2023 -0800)
Loading...
Searching...
No Matches
Functions
Formatted Output

Functions

template<class F , class... Ts>
void tinker::print (std::FILE *out, const F &f, Ts &&... args)
 Formatted output. More...
 
template<class F >
void tinker::print (std::FILE *out, const F &f)
 Formatted output. More...
 
template<class F , class... Ts>
std::string tinker::format (const F &f, Ts &&... args)
 Writes the formatted output to an std::string object. More...
 
std::string tinker::operator* (size_t k, std::string str)
 Duplicates then concatenates multiple copies of string. More...
 
std::string tinker::operator* (std::string str, size_t k)
 Duplicates then concatenate multiple copies of string. More...
 
std::string tinker::operator""_s (const char *s, size_t len)
 Uses _s suffix to convert a const char* to std::string. More...
 

Detailed Description

Function Documentation

◆ format()

template<class F , class... Ts>
std::string tinker::format ( const F &  f,
Ts &&...  args 
)

Writes the formatted output to an std::string object.

Parameters
fFormat string.
argsValues to be printed out.
Returns
The formatted std::string output.

◆ operator""_s()

std::string tinker::operator""_s ( const char *  s,
size_t  len 
)
inline

Uses _s suffix to convert a const char* to std::string.

◆ operator*() [1/2]

std::string tinker::operator* ( size_t  k,
std::string  str 
)
inline

Duplicates then concatenates multiple copies of string.

◆ operator*() [2/2]

std::string tinker::operator* ( std::string  str,
size_t  k 
)
inline

Duplicates then concatenate multiple copies of string.

◆ print() [1/2]

template<class F >
void tinker::print ( std::FILE *  out,
const F &  f 
)

Formatted output.

Parameters
outA FILE pointer.
fMessage to be printed.

◆ print() [2/2]

template<class F , class... Ts>
void tinker::print ( std::FILE *  out,
const F &  f,
Ts &&...  args 
)

Formatted output.

Parameters
outA FILE pointer.
fFormat string.
argsValues to be printed.