Console Library 4.7.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 <iostream>
35#include <vector>
36#include <deque>
37#include <list>
38#include <forward_list>
39#include <array>
40#include <set>
41#include <map>
42#include <unordered_set>
43#include <unordered_map>
44#include <valarray>
45#include <utility>
46
47namespace console
48{
54
56 template <class T>
57 std::ostream &operator<<(std::ostream &, const std::vector<T> &);
58
60 template <class T>
61 std::ostream &operator<<(std::ostream &, const std::deque<T> &);
62
64 template <class T>
65 std::ostream &operator<<(std::ostream &, const std::list<T> &);
66
68 template <class T>
69 std::ostream &operator<<(std::ostream &, const std::forward_list<T> &);
70
72 template <class T, size_t n>
73 std::ostream &operator<<(std::ostream &, const std::array<T, n> &);
74
76 template <class T>
77 std::ostream &operator<<(std::ostream &, const std::set<T> &);
78
80 template <class K, class V>
81 std::ostream &operator<<(std::ostream &, const std::map<K, V> &);
82
84 template <class T>
85 std::ostream &operator<<(std::ostream &, const std::multiset<T> &);
86
88 template <class K, class V>
89 std::ostream &operator<<(std::ostream &, const std::multimap<K, V> &);
90
92 template <class T>
93 std::ostream &operator<<(std::ostream &, const std::unordered_set<T> &);
94
96 template <class K, class V>
97 std::ostream &operator<<(std::ostream &, const std::unordered_map<K, V> &);
98
100 template <class T>
101 std::ostream &operator<<(std::ostream &, const std::unordered_multiset<T> &);
102
104 template <class K, class V>
105 std::ostream &operator<<(std::ostream &, const std::unordered_multimap<K, V> &);
106
108 template <class T, class U>
109 std::ostream &operator<<(std::ostream &, const std::pair<T, U> &);
110
112 template <class... Args>
113 std::ostream &operator<<(std::ostream &, const std::tuple<Args...> &);
114
116 template <class T>
117 std::ostream &operator<<(std::ostream &, const std::valarray<T> &);
118
120}
MultiArray< T, Dims... > operator<<(const MultiArray< T, Dims... > &a, const MultiArray< T, Dims... > &b)
左移(数组 << 数组)。
Definition multiarray.h:1227
本库所有组件所在的顶层命名空间。