xtd 0.2.0
Loading...
Searching...
No Matches
stream_insertion_operator.hpp
Go to the documentation of this file.
1
4#pragma once
5#define __XTD_STD_INTERNAL__
7#undef __XTD_STD_INTERNAL__
8#include <compare>
9
11namespace xtd {
13 namespace extensions {
30 template<class type_t, class stringable_t>
31 class stream_insertion_operator {
32 public:
34
40 friend auto operator <<(std::ostream& os, const type_t& value) -> std::ostream& {return os << value.to_string();}
42
43 private:
44 friend stringable_t;
45 stream_insertion_operator() = default;
46 };
47 }
48}
Contains __xtd_std_version definitions.
Internal comparable operators definition.
Definition stream_insertion_operator.hpp:31
friend auto operator<<(std::ostream &os, const type_t &value) -> std::ostream &
Stream insertable operator with specidied value.
Definition stream_insertion_operator.hpp:40
The xtd::extensions namespace contains interface extensions.
Definition comparison_operators.hpp:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8