~ubuntu-branches/ubuntu/trusty/emscripten/trusty-proposed

« back to all changes in this revision

Viewing changes to system/include/libcxx/__hash_table

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2014-01-19 14:12:40 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20140119141240-jg1l42cc158j59tn
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:
20
20
 
21
21
#include <__undef_min_max>
22
22
 
23
 
#ifdef _LIBCPP_DEBUG2
 
23
#ifdef _LIBCPP_DEBUG
24
24
#   include <__debug>
25
25
#else
26
26
#   define _LIBCPP_ASSERT(x, m) ((void)0)
85
85
}
86
86
 
87
87
template <class _Tp, class _Hash, class _Equal, class _Alloc> class __hash_table;
88
 
template <class _ConstNodePtr> class _LIBCPP_TYPE_VIS __hash_const_iterator;
89
 
template <class _HashIterator> class _LIBCPP_TYPE_VIS __hash_map_iterator;
90
 
template <class _HashIterator> class _LIBCPP_TYPE_VIS __hash_map_const_iterator;
 
88
template <class _ConstNodePtr> class _LIBCPP_TYPE_VIS_ONLY __hash_const_iterator;
 
89
template <class _HashIterator> class _LIBCPP_TYPE_VIS_ONLY __hash_map_iterator;
 
90
template <class _HashIterator> class _LIBCPP_TYPE_VIS_ONLY __hash_map_const_iterator;
91
91
template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc>
92
 
    class _LIBCPP_TYPE_VIS unordered_map;
 
92
    class _LIBCPP_TYPE_VIS_ONLY unordered_map;
93
93
 
94
94
template <class _NodePtr>
95
 
class _LIBCPP_TYPE_VIS __hash_iterator
 
95
class _LIBCPP_TYPE_VIS_ONLY __hash_iterator
96
96
{
97
97
    typedef _NodePtr __node_pointer;
98
98
 
212
212
#endif
213
213
 
214
214
    template <class, class, class, class> friend class __hash_table;
215
 
    template <class> friend class _LIBCPP_TYPE_VIS __hash_const_iterator;
216
 
    template <class> friend class _LIBCPP_TYPE_VIS __hash_map_iterator;
217
 
    template <class, class, class, class, class> friend class _LIBCPP_TYPE_VIS unordered_map;
218
 
    template <class, class, class, class, class> friend class _LIBCPP_TYPE_VIS unordered_multimap;
 
215
    template <class> friend class _LIBCPP_TYPE_VIS_ONLY __hash_const_iterator;
 
216
    template <class> friend class _LIBCPP_TYPE_VIS_ONLY __hash_map_iterator;
 
217
    template <class, class, class, class, class> friend class _LIBCPP_TYPE_VIS_ONLY unordered_map;
 
218
    template <class, class, class, class, class> friend class _LIBCPP_TYPE_VIS_ONLY unordered_multimap;
219
219
};
220
220
 
221
221
template <class _ConstNodePtr>
222
 
class _LIBCPP_TYPE_VIS __hash_const_iterator
 
222
class _LIBCPP_TYPE_VIS_ONLY __hash_const_iterator
223
223
{
224
224
    typedef _ConstNodePtr __node_pointer;
225
225
 
359
359
#endif
360
360
 
361
361
    template <class, class, class, class> friend class __hash_table;
362
 
    template <class> friend class _LIBCPP_TYPE_VIS __hash_map_const_iterator;
363
 
    template <class, class, class, class, class> friend class _LIBCPP_TYPE_VIS unordered_map;
364
 
    template <class, class, class, class, class> friend class _LIBCPP_TYPE_VIS unordered_multimap;
 
362
    template <class> friend class _LIBCPP_TYPE_VIS_ONLY __hash_map_const_iterator;
 
363
    template <class, class, class, class, class> friend class _LIBCPP_TYPE_VIS_ONLY unordered_map;
 
364
    template <class, class, class, class, class> friend class _LIBCPP_TYPE_VIS_ONLY unordered_multimap;
365
365
};
366
366
 
367
 
template <class _ConstNodePtr> class _LIBCPP_TYPE_VIS __hash_const_local_iterator;
 
367
template <class _ConstNodePtr> class _LIBCPP_TYPE_VIS_ONLY __hash_const_local_iterator;
368
368
 
369
369
template <class _NodePtr>
370
 
class _LIBCPP_TYPE_VIS __hash_local_iterator
 
370
class _LIBCPP_TYPE_VIS_ONLY __hash_local_iterator
371
371
{
372
372
    typedef _NodePtr __node_pointer;
373
373
 
503
503
        }
504
504
#endif
505
505
    template <class, class, class, class> friend class __hash_table;
506
 
    template <class> friend class _LIBCPP_TYPE_VIS __hash_const_local_iterator;
507
 
    template <class> friend class _LIBCPP_TYPE_VIS __hash_map_iterator;
 
506
    template <class> friend class _LIBCPP_TYPE_VIS_ONLY __hash_const_local_iterator;
 
507
    template <class> friend class _LIBCPP_TYPE_VIS_ONLY __hash_map_iterator;
508
508
};
509
509
 
510
510
template <class _ConstNodePtr>
511
 
class _LIBCPP_TYPE_VIS __hash_const_local_iterator
 
511
class _LIBCPP_TYPE_VIS_ONLY __hash_const_local_iterator
512
512
{
513
513
    typedef _ConstNodePtr __node_pointer;
514
514
 
668
668
        }
669
669
#endif
670
670
    template <class, class, class, class> friend class __hash_table;
671
 
    template <class> friend class _LIBCPP_TYPE_VIS __hash_map_const_iterator;
 
671
    template <class> friend class _LIBCPP_TYPE_VIS_ONLY __hash_map_const_iterator;
672
672
};
673
673
 
674
674
template <class _Alloc>
1160
1160
    void __deallocate(__node_pointer __np) _NOEXCEPT;
1161
1161
    __node_pointer __detach() _NOEXCEPT;
1162
1162
 
1163
 
    template <class, class, class, class, class> friend class _LIBCPP_TYPE_VIS unordered_map;
1164
 
    template <class, class, class, class, class> friend class _LIBCPP_TYPE_VIS unordered_multimap;
 
1163
    template <class, class, class, class, class> friend class _LIBCPP_TYPE_VIS_ONLY unordered_map;
 
1164
    template <class, class, class, class, class> friend class _LIBCPP_TYPE_VIS_ONLY unordered_multimap;
1165
1165
};
1166
1166
 
1167
1167
template <class _Tp, class _Hash, class _Equal, class _Alloc>
2101
2101
    __h.get_deleter().__value_constructed = true;
2102
2102
    __h->__hash_ = __hash;
2103
2103
    __h->__next_ = nullptr;
2104
 
    return _VSTD::move(__h);
 
2104
    return __h;
2105
2105
}
2106
2106
 
2107
2107
#else  // _LIBCPP_HAS_NO_RVALUE_REFERENCES
2116
2116
    __h.get_deleter().__value_constructed = true;
2117
2117
    __h->__hash_ = hash_function()(__h->__value_);
2118
2118
    __h->__next_ = nullptr;
2119
 
    return _VSTD::move(__h);
 
2119
    return _VSTD::move(__h);  // explicitly moved for C++03
2120
2120
}
2121
2121
 
2122
2122
#endif  // _LIBCPP_HAS_NO_RVALUE_REFERENCES
2132
2132
    __h.get_deleter().__value_constructed = true;
2133
2133
    __h->__hash_ = __hash;
2134
2134
    __h->__next_ = nullptr;
2135
 
    return _VSTD::move(__h);
 
2135
    return _VSTD::move(__h);  // explicitly moved for C++03
2136
2136
}
2137
2137
 
2138
2138
template <class _Tp, class _Hash, class _Equal, class _Alloc>