ptc-print
A C++17 header-only library for custom printing to the output stream (inspired by the Python print function).
Classes | Namespaces | Macros | Enumerations | Variables
print.hpp File Reference
#include <iostream>
#include <sstream>
#include <string>
#include <string_view>
#include <type_traits>
#include <mutex>
#include <utility>
#include <locale>
#include <codecvt>
#include <stddef.h>
#include <complex>
#include <array>
#include <stack>
#include <queue>
#include <chrono>
#include <unordered_map>
#include <typeindex>
#include <iterator>
#include <optional>
#include <ratio>
#include <algorithm>
Include dependency graph for print.hpp:

Go to the source code of this file.

Classes

struct  ptc::Print< T_str >
 Class used to construct the print function. More...
 
struct  ptc::Print< T_str >::select_cout< T >
 Struct used to define a way to template the choice of the "std::cout" object in order to be "std::cout" for "char" type or "std::wcout" for "wchar_t" type. More...
 

Namespaces

 ptc
 

Macros

#define PYTHON_TO_CPP_PRINT_HPP
 

Enumerations

enum class  ptc::mode { ptc::str }
 Enum class used to set up the "str" mode to pass a string with the content of the print function. More...
 
enum class  ptc::ANSI { ptc::first , ptc::generic }
 Enum class used to switch among ANSI escape configurations in the "is_escape" function. More...
 

Variables

Print< char > ptc::print
 
Print< wchar_t > ptc::wprint
 
Print< char16_t > ptc::print16
 
Print< char32_t > ptc::print32
 

Detailed Description

Author
Gianluca Bianco (bianc.nosp@m.ogia.nosp@m.nluca.nosp@m.9@gm.nosp@m.ail.c.nosp@m.om)
Date
2022-07-14

Macro Definition Documentation

◆ PYTHON_TO_CPP_PRINT_HPP

#define PYTHON_TO_CPP_PRINT_HPP