Helper type to automatically support formatted printing for user defined types through print()
More...
#include <print.h>
|
| std::to_chars_result | to_chars (char *begin, char *end, const Derived &type) |
| |
template<typename Derived>
struct ape::PrintFormatter< Derived >
Helper type to automatically support formatted printing for user defined types through print()
class MyCustomType : PrintFormatter<MyCustomType>
{
public:
bool format(
char* begin,
char* end,
char** newBegin)
const
{
return true;
}
};
◆ to_chars
template<typename Derived >
| std::to_chars_result to_chars |
( |
char * |
begin, |
|
|
char * |
end, |
|
|
const Derived & |
type |
|
) |
| |
|
friend |
The documentation for this struct was generated from the following file:
- C:/Code/ape/make/skeleton/includes/print.h
int sprintf(char *buffer, const char *fmt,...)
Print to a string buffer. This function is inherently unsafe, but may prove useful for particular for...