xtd 0.2.0
Loading...
Searching...
No Matches
println.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "console.hpp"
6
8namespace xtd {
11
15 template<typename arg_t>
16 void println(arg_t&& value) {xtd::console::write_line(xtd::string::format("{}", value));}
17
19 template<typename type_t>
20 void println(const std::initializer_list<type_t>& il) {xtd::console::write_line(xtd::string::format("{}", il));}
22
27 template<typename ... args_t>
28 void println(const xtd::string& fmt, args_t&& ... values) {xtd::console::write_line(xtd::string::format(fmt, std::forward<args_t>(values)...));}
33 template<typename ... args_t>
34 void println(const char* fmt, args_t&& ... values) {xtd::console::write_line(xtd::string::format(xtd::string {fmt}, std::forward<args_t>(values)...));}
35#if defined(__xtd__cpp_lib_char8_t)
40 template<typename ... args_t>
41 void println(const char8_t* fmt, args_t&& ... values) {xtd::console::write_line(xtd::string::format(xtd::string {fmt}, std::forward<args_t>(values)...));}
42#endif
47 template<typename ... args_t>
48 void println(const char16_t* fmt, args_t&& ... values) {xtd::console::write_line(xtd::string::format(xtd::string {fmt}, std::forward<args_t>(values)...));}
53 template<typename ... args_t>
54 void println(const char32_t* fmt, args_t&& ... values) {xtd::console::write_line(xtd::string::format(xtd::string {fmt}, std::forward<args_t>(values)...));}
59 template<typename ... args_t>
60 void println(const wchar_t* fmt, args_t&& ... values) {xtd::console::write_line(xtd::string::format(xtd::string {fmt}, std::forward<args_t>(values)...));}
61}
Represents text as a sequence of character units.
Definition basic_string.hpp:79
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
Contains xtd::console class.
static basic_string format(const basic_string< char > &fmt, args_t &&... args)
Writes the text representation of the specified arguments list, to string using the specified format ...
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
void println()
Writes the current line terminator to the standard output stream using the specified format informati...
Definition println.hpp:10