Console Library 8.0.0
A header-only library that makes C++ simple
Loading...
Searching...
No Matches
outfwd.h
Go to the documentation of this file.
1
10
11/*
12Copyright (c) 2026 MrXie1109
13
14Permission is hereby granted, free of charge, to any person obtaining a copy
15of this software and associated documentation files (the "Software"), to deal
16in the Software without restriction, including without limitation the rights
17to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18copies of the Software, and to permit persons to whom the Software is
19furnished to do so, subject to the following conditions:
20
21The above copyright notice and this permission notice shall be included in all
22copies or substantial portions of the Software.
23
24THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30SOFTWARE.
31*/
32
33#pragma once
34#include <array>
35#include <deque>
36#include <forward_list>
37#include <iostream>
38#include <list>
39#include <map>
40#include <set>
41#include <unordered_map>
42#include <unordered_set>
43#include <utility>
44#include <valarray>
45#include <vector>
46
47namespace console {
53
55 template <class CharT, class Traits, class T>
56 std::basic_ostream<CharT, Traits> &
57 operator<<(std::basic_ostream<CharT, Traits> &, const std::vector<T> &);
58
60 template <class CharT, class Traits, class T>
61 std::basic_ostream<CharT, Traits> &
62 operator<<(std::basic_ostream<CharT, Traits> &, const std::deque<T> &);
63
65 template <class CharT, class Traits, class T>
66 std::basic_ostream<CharT, Traits> &
67 operator<<(std::basic_ostream<CharT, Traits> &, const std::list<T> &);
68
70 template <class CharT, class Traits, class T>
71 std::basic_ostream<CharT, Traits> &operator<<(
72 std::basic_ostream<CharT, Traits> &, const std::forward_list<T> &);
73
75 template <class CharT, class Traits, class T, size_t n>
76 std::basic_ostream<CharT, Traits> &
77 operator<<(std::basic_ostream<CharT, Traits> &, const std::array<T, n> &);
78
80 template <class CharT, class Traits, class T>
81 std::basic_ostream<CharT, Traits> &
82 operator<<(std::basic_ostream<CharT, Traits> &, const std::set<T> &);
83
85 template <class CharT, class Traits, class K, class V>
86 std::basic_ostream<CharT, Traits> &
87 operator<<(std::basic_ostream<CharT, Traits> &, const std::map<K, V> &);
88
90 template <class CharT, class Traits, class T>
91 std::basic_ostream<CharT, Traits> &
92 operator<<(std::basic_ostream<CharT, Traits> &, const std::multiset<T> &);
93
95 template <class CharT, class Traits, class K, class V>
96 std::basic_ostream<CharT, Traits> &operator<<(
97 std::basic_ostream<CharT, Traits> &, const std::multimap<K, V> &);
98
100 template <class CharT, class Traits, class T>
101 std::basic_ostream<CharT, Traits> &operator<<(
102 std::basic_ostream<CharT, Traits> &, const std::unordered_set<T> &);
103
105 template <class CharT, class Traits, class K, class V>
106 std::basic_ostream<CharT, Traits> &operator<<(
107 std::basic_ostream<CharT, Traits> &, const std::unordered_map<K, V> &);
108
110 template <class CharT, class Traits, class T>
111 std::basic_ostream<CharT, Traits> &
112 operator<<(std::basic_ostream<CharT, Traits> &,
113 const std::unordered_multiset<T> &);
114
116 template <class CharT, class Traits, class K, class V>
117 std::basic_ostream<CharT, Traits> &
118 operator<<(std::basic_ostream<CharT, Traits> &,
119 const std::unordered_multimap<K, V> &);
120
122 template <class CharT, class Traits, class T, class U>
123 std::basic_ostream<CharT, Traits> &
124 operator<<(std::basic_ostream<CharT, Traits> &, const std::pair<T, U> &);
125
127 template <class CharT, class Traits, class... Args>
128 std::basic_ostream<CharT, Traits> &operator<<(
129 std::basic_ostream<CharT, Traits> &, const std::tuple<Args...> &);
130
132 template <class CharT, class Traits, class T>
133 std::basic_ostream<CharT, Traits> &
134 operator<<(std::basic_ostream<CharT, Traits> &, const std::valarray<T> &);
135
137}
本库所有组件所在的顶层命名空间。
MultiArray< decltype(std::declval< T >()<< std::declval< U >()), Dims... > operator<<(const MultiArray< T, Dims... > &a, const MultiArray< U, Dims... > &b)
Definition multiarray.h:1607