Home | History | Annotate | Download | only in bits

Lines Matching refs:pair

0 // Pair implementation -*- C++ -*-
96 struct pair
105 // 265. std::pair::pair() effects overly restrictive
108 _GLIBCXX_CONSTEXPR pair()
111 /** Two objects may be passed to a @c pair constructor to be copied. */
112 _GLIBCXX_CONSTEXPR pair(const _T1& __a, const _T2& __b)
115 /** There is also a templated copy ctor for the @c pair class itself. */
118 pair(const pair<_U1, _U2>& __p)
124 constexpr pair(const pair<_U1, _U2>& __p)
127 constexpr pair(const pair&) = default;
128 constexpr pair(pair&&) = default;
133 constexpr pair(_U1&& __x, const _T2& __y)
138 constexpr pair(const _T1& __x, _U2&& __y)
144 constexpr pair(_U1&& __x, _U2&& __y)
150 constexpr pair(pair<_U1, _U2>&& __p)
155 pair(piecewise_construct_t, tuple<_Args1...>, tuple<_Args2...>);
157 pair&
158 operator=(const pair& __p)
165 pair&
166 operator=(pair&& __p)
176 pair&
177 operator=(const pair<_U1, _U2>& __p)
185 pair&
186 operator=(pair<_U1, _U2>&& __p)
194 swap(pair& __p)
206 pair(tuple<_Args1...>&, tuple<_Args2...>&,
214 operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
220 operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
227 operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
233 operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
239 operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
245 operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
249 /// See std::pair::swap().
254 swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y)
260 * @brief A convenience wrapper for creating a pair from two objects.
263 * @return A newly-constructed pair<> object of the appropriate type.
274 constexpr pair<typename __decay_and_strip<_T1>::__type,
280 typedef pair<__ds_type1, __ds_type2> __pair_type;
285 inline pair<_T1, _T2>
287 { return pair<_T1, _T2>(__x, __y); }