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
26 template<typename ... args_t>
27 void println(const xtd::string& fmt, args_t&& ... values) {xtd::console::write_line(xtd::string::format(fmt, std::forward<args_t>(values)...));}
28
30 template<typename ... args_t>
31 void println(const char* fmt, args_t&& ... values) {xtd::console::write_line(xtd::string::format(xtd::string {fmt}, std::forward<args_t>(values)...));}
32#if defined(__xtd__cpp_lib_char8_t)
33 template<typename ... args_t>
34 void println(const char8_t* fmt, args_t&& ... values) {xtd::console::write_line(xtd::string::format(xtd::string {fmt}, std::forward<args_t>(values)...));}
35#endif
36 template<typename ... args_t>
37 void println(const char16_t* fmt, args_t&& ... values) {xtd::console::write_line(xtd::string::format(xtd::string {fmt}, std::forward<args_t>(values)...));}
38 template<typename ... args_t>
39 void println(const char32_t* fmt, args_t&& ... values) {xtd::console::write_line(xtd::string::format(xtd::string {fmt}, std::forward<args_t>(values)...));}
40 template<typename ... args_t>
41 void println(const wchar_t* fmt, args_t&& ... values) {xtd::console::write_line(xtd::string::format(xtd::string {fmt}, std::forward<args_t>(values)...));}
43}
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...
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
Contains xtd::console class.