ORIGINAL
|
Interface for polymorphic string formatting and output. More...
Go to the source code of this file.
Classes | |
class | original::printable |
Base class providing polymorphic string conversion capabilities. More... | |
struct | std::formatter< T > |
std::formatter specialization for printable types More... | |
Namespaces | |
namespace | original |
Main namespace for the project Original. | |
namespace | std |
Standard namespace extensions for original::alternative. | |
Functions | |
std::ostream & | original::operator<< (std::ostream &os, const printable &p) |
Stream insertion operator for printable objects. | |
template<typename T > requires original::ExtendsOf<original::printable, T> | |
std::string | std::to_string (const T &t) |
std::to_string overload for printable-derived types | |
template<> | |
auto | original::printable::formatString< std::nullptr_t > (const std::nullptr_t &) -> std::string |
template<> | |
auto | original::printable::formatString< std::string > (const std::string &t) -> std::string |
Interface for polymorphic string formatting and output.
Defines the printable base class with comprehensive string conversion utilities, supporting automatic formatting of primitive types, enums, pointers, and custom class hierarchies. Includes integration with C++20 std::format.
Key Features: