~ubuntu-branches/ubuntu/vivid/emscripten/vivid-proposed

« back to all changes in this revision

Viewing changes to system/include/libcxx/array

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2014-01-19 14:12:40 UTC
  • mfrom: (4.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20140119141240-nfiw0p8033oitpfz
Tags: 1.9.0~20140119~7dc8c2f-1
* New snapshot release (Closes: #733714)
* Provide sources for javascript and flash. Done in orig-tar.sh
  Available in third_party/websockify/include/web-socket-js/src/
  (Closes: #735903)

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
_LIBCPP_BEGIN_NAMESPACE_STD
119
119
 
120
120
template <class _Tp, size_t _Size>
121
 
struct _LIBCPP_TYPE_VIS array
 
121
struct _LIBCPP_TYPE_VIS_ONLY array
122
122
{
123
123
    // types:
124
124
    typedef array __self;
224
224
}
225
225
 
226
226
template <class _Tp, size_t _Size>
227
 
_LIBCPP_INLINE_VISIBILITY inline
 
227
inline _LIBCPP_INLINE_VISIBILITY
228
228
bool
229
229
operator==(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
230
230
{
232
232
}
233
233
 
234
234
template <class _Tp, size_t _Size>
235
 
_LIBCPP_INLINE_VISIBILITY inline
 
235
inline _LIBCPP_INLINE_VISIBILITY
236
236
bool
237
237
operator!=(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
238
238
{
240
240
}
241
241
 
242
242
template <class _Tp, size_t _Size>
243
 
_LIBCPP_INLINE_VISIBILITY inline
 
243
inline _LIBCPP_INLINE_VISIBILITY
244
244
bool
245
245
operator<(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
246
246
{
248
248
}
249
249
 
250
250
template <class _Tp, size_t _Size>
251
 
_LIBCPP_INLINE_VISIBILITY inline
 
251
inline _LIBCPP_INLINE_VISIBILITY
252
252
bool
253
253
operator>(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
254
254
{
256
256
}
257
257
 
258
258
template <class _Tp, size_t _Size>
259
 
_LIBCPP_INLINE_VISIBILITY inline
 
259
inline _LIBCPP_INLINE_VISIBILITY
260
260
bool
261
261
operator<=(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
262
262
{
264
264
}
265
265
 
266
266
template <class _Tp, size_t _Size>
267
 
_LIBCPP_INLINE_VISIBILITY inline
 
267
inline _LIBCPP_INLINE_VISIBILITY
268
268
bool
269
269
operator>=(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
270
270
{
272
272
}
273
273
 
274
274
template <class _Tp, size_t _Size>
275
 
_LIBCPP_INLINE_VISIBILITY inline
 
275
inline _LIBCPP_INLINE_VISIBILITY
276
276
typename enable_if
277
277
<
278
278
    __is_swappable<_Tp>::value,
285
285
}
286
286
 
287
287
template <class _Tp, size_t _Size>
288
 
class _LIBCPP_TYPE_VIS tuple_size<array<_Tp, _Size> >
 
288
class _LIBCPP_TYPE_VIS_ONLY tuple_size<array<_Tp, _Size> >
289
289
    : public integral_constant<size_t, _Size> {};
290
290
 
291
291
template <class _Tp, size_t _Size>
292
 
class _LIBCPP_TYPE_VIS tuple_size<const array<_Tp, _Size> >
 
292
class _LIBCPP_TYPE_VIS_ONLY tuple_size<const array<_Tp, _Size> >
293
293
    : public integral_constant<size_t, _Size> {};
294
294
 
295
295
template <size_t _Ip, class _Tp, size_t _Size>
296
 
class _LIBCPP_TYPE_VIS tuple_element<_Ip, array<_Tp, _Size> >
 
296
class _LIBCPP_TYPE_VIS_ONLY tuple_element<_Ip, array<_Tp, _Size> >
297
297
{
298
298
public:
299
299
    typedef _Tp type;
300
300
};
301
301
 
302
302
template <size_t _Ip, class _Tp, size_t _Size>
303
 
class _LIBCPP_TYPE_VIS tuple_element<_Ip, const array<_Tp, _Size> >
 
303
class _LIBCPP_TYPE_VIS_ONLY tuple_element<_Ip, const array<_Tp, _Size> >
304
304
{
305
305
public:
306
306
    typedef const _Tp type;
307
307
};
308
308
 
309
309
template <size_t _Ip, class _Tp, size_t _Size>
310
 
_LIBCPP_INLINE_VISIBILITY inline _LIBCPP_CONSTEXPR_AFTER_CXX11
 
310
inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11
311
311
_Tp&
312
312
get(array<_Tp, _Size>& __a) _NOEXCEPT
313
313
{
316
316
}
317
317
 
318
318
template <size_t _Ip, class _Tp, size_t _Size>
319
 
_LIBCPP_INLINE_VISIBILITY inline _LIBCPP_CONSTEXPR_AFTER_CXX11
 
319
inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11
320
320
const _Tp&
321
321
get(const array<_Tp, _Size>& __a) _NOEXCEPT
322
322
{
327
327
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
328
328
 
329
329
template <size_t _Ip, class _Tp, size_t _Size>
330
 
_LIBCPP_INLINE_VISIBILITY inline _LIBCPP_CONSTEXPR_AFTER_CXX11
 
330
inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11
331
331
_Tp&&
332
332
get(array<_Tp, _Size>&& __a) _NOEXCEPT
333
333
{