20#ifndef _STLP_INTERNAL_UNORDERED_SET_H
21#define _STLP_INTERNAL_UNORDERED_SET_H
23#ifndef _STLP_INTERNAL_HASHTABLE_H
34template <
class _Value, _STLP_DFL_TMPL_PARAM(_HashFcn,hash<_Value>),
35 _STLP_DFL_TMPL_PARAM(_EqualKey, equal_to<_Value>),
36 _STLP_DFL_TMPL_PARAM(_Alloc, allocator<_Value>) >
38#
if defined (_STLP_USE_PARTIAL_SPEC_WORKAROUND)
39 :
public __stlport_class<unordered_set<_Value, _HashFcn, _EqualKey, _Alloc> >
82#if !defined (_STLP_NO_MOVE_SEMANTIC)
87#if defined (_STLP_MEMBER_TEMPLATES)
88 template <
class _InputIterator>
118#if defined (_STLP_USE_PARTIAL_SPEC_WORKAROUND) && !defined (_STLP_FUNCTION_TMPL_PARTIAL_ORDER)
119 void _M_swap_workaround(
_Self& __x) {
swap(__x); }
131#if defined (_STLP_MEMBER_TEMPLATES)
132 template <
class _InputIterator>
133 void insert(_InputIterator __f, _InputIterator __l)
184template <
class _Value, _STLP_DFL_TMPL_PARAM(_HashFcn,hash<_Value>),
185 _STLP_DFL_TMPL_PARAM(_EqualKey, equal_to<_Value>),
186 _STLP_DFL_TMPL_PARAM(_Alloc, allocator<_Value>) >
188#
if defined (_STLP_USE_PARTIAL_SPEC_WORKAROUND)
189 :
public __stlport_class<unordered_multiset<_Value, _HashFcn, _EqualKey, _Alloc> >
232#if !defined (_STLP_NO_MOVE_SEMANTIC)
237#if defined (_STLP_MEMBER_TEMPLATES)
238 template <
class _InputIterator>
268#if defined (_STLP_USE_PARTIAL_SPEC_WORKAROUND) && !defined (_STLP_FUNCTION_TMPL_PARTIAL_ORDER)
269 void _M_swap_workaround(
_Self& __x) {
swap(__x); }
281#if defined (_STLP_MEMBER_TEMPLATES)
282 template <
class _InputIterator>
283 void insert(_InputIterator __f, _InputIterator __l)
327#define _STLP_TEMPLATE_HEADER template <class _Value, class _HashFcn, class _EqualKey, class _Alloc>
328#define _STLP_TEMPLATE_CONTAINER unordered_set<_Value,_HashFcn,_EqualKey,_Alloc>
332#undef _STLP_TEMPLATE_CONTAINER
333#define _STLP_TEMPLATE_CONTAINER unordered_multiset<_Value,_HashFcn,_EqualKey,_Alloc>
336#undef _STLP_TEMPLATE_CONTAINER
337#undef _STLP_TEMPLATE_HEADER
344#if defined (_STLP_CLASS_PARTIAL_SPECIALIZATION)
345# if !defined (_STLP_NO_MOVE_SEMANTIC)
346template <
class _Value,
class _HashFcn,
class _EqualKey,
class _Alloc>
351template <
class _Value,
class _HashFcn,
class _EqualKey,
class _Alloc>
357template <
class _Value,
class _HashFcn,
class _EqualKey,
class _Alloc>
365 typedef void value_type;
366 typedef void difference_type;
383template <
class _Value,
class _HashFcn,
class _EqualKey,
class _Alloc>
388 typename _Container::iterator iter;
392 typedef void value_type;
393 typedef void difference_type;
_STLP_INLINE_LOOP _InputIter const _Tp & __val
#define _STLP_CREATE_HASH_ITERATOR_TRAITS(Motif, Traits)
_STLP_MOVE_TO_PRIV_NAMESPACE const _InputIterator const input_iterator_tag &_InputIterator __it(__first)
void get(int argc, const char *argv[])
_NonConstTraits::reference reference
_STLP_PRIV _Ht_iterator< _ElemsIte, _ConstTraits > const_iterator
size_type erase(const key_type &__key)
const value_type & const_reference
const value_type * const_pointer
allocator_type get_allocator() const
ptrdiff_t difference_type
iterator insert_equal(const value_type &__obj)
pair< iterator, bool > insert_unique(const value_type &__obj)
_STLP_PRIV _Ht_iterator< _ElemsIte, _NonConstTraits > iterator
size_type bucket_count() const
float max_load_factor() const
size_type max_bucket_count() const
_STLP_TEMPLATE_FOR_CONT_EXT pair< iterator, iterator > equal_range(const _KT &__key)
_STLP_TEMPLATE_FOR_CONT_EXT iterator find(const _KT &__key)
size_type max_size() const
_NonConstTraits::pointer pointer
size_type elems_in_bucket(size_type __bucket) const
_STLP_PRIV _Ht_iterator< _ElemsIte, _ConstLocalTraits > const_local_iterator
void rehash(size_type __num_buckets_hint)
float load_factor() const
_STLP_PRIV _Ht_iterator< _ElemsIte, _NonConstLocalTraits > local_iterator
hasher hash_funct() const
_STLP_TEMPLATE_FOR_CONT_EXT size_type bucket(const _KT &__k) const
_STLP_TEMPLATE_FOR_CONT_EXT size_type count(const _KT &__key) const
output_iterator_tag iterator_category
_Self & operator=(_Self const &__other)
_Container container_type
void rehash(size_type __hint)
_STLP_TEMPLATE_FOR_CONT_EXT size_type bucket(const _KT &__k) const
unordered_multiset(size_type __n=0, const hasher &__hf=hasher(), const key_equal &__eql=key_equal(), const allocator_type &__a=allocator_type())
const_local_iterator end(size_type __n) const
unordered_multiset(const value_type *__f, const value_type *__l, size_type __n=0, const hasher &__hf=hasher(), const key_equal &__eql=key_equal(), const allocator_type &__a=allocator_type())
const_iterator begin() const
_Ht::const_local_iterator const_local_iterator
allocator_type get_allocator() const
_Ht::value_type value_type
hashtable< _Value, _Value, _HashFcn, _UnorderedMultisetTraits, _STLP_PRIV _Identity< _Value >, _EqualKey, _Alloc > _Ht
float load_factor() const
_STLP_TEMPLATE_FOR_CONT_EXT iterator find(const _KT &__key)
_STLP_TEMPLATE_FOR_CONT_EXT pair< iterator, iterator > equal_range(const _KT &__key)
void erase(const_iterator __f, const_iterator __l)
_STLP_TEMPLATE_FOR_CONT_EXT const_iterator find(const _KT &__key) const
size_type bucket_count() const
const_iterator end() const
size_type max_size() const
_STLP_TEMPLATE_FOR_CONT_EXT size_type count(const _KT &__key) const
iterator insert(const value_type &__obj)
_Ht::local_iterator local_iterator
_Ht::const_pointer const_pointer
_Self & operator=(const _Self &__other)
size_type erase(const key_type &__key)
_Ht::const_reference const_reference
void insert(const_iterator __f, const_iterator __l)
unordered_multiset(__move_source< _Self > src)
void max_load_factor(float __val)
unordered_multiset< _Value, _HashFcn, _EqualKey, _Alloc > _Self
size_type max_bucket_count() const
void erase(const_iterator __it)
_Ht::difference_type difference_type
local_iterator begin(size_type __n)
hasher hash_function() const
_STLP_PRIV _UnorderedMultisetTraitsT< _Value > _UnorderedMultisetTraits
size_type bucket_size(size_type __n) const
local_iterator end(size_type __n)
iterator insert(const_iterator, const value_type &__obj)
unordered_multiset(const_iterator __f, const_iterator __l, size_type __n=0, const hasher &__hf=hasher(), const key_equal &__eql=key_equal(), const allocator_type &__a=allocator_type())
void insert(const value_type *__f, const value_type *__l)
_Ht::allocator_type allocator_type
_Ht::const_iterator const_iterator
float max_load_factor() const
_STLP_TEMPLATE_FOR_CONT_EXT pair< const_iterator, const_iterator > equal_range(const _KT &__key) const
const_local_iterator begin(size_type __n) const
_STLP_TEMPLATE_FOR_CONT_EXT iterator find(const _KT &__key)
unordered_set(size_type __n=0, const hasher &__hf=hasher(), const key_equal &__eql=key_equal(), const allocator_type &__a=allocator_type())
local_iterator begin(size_type __n)
void insert(const_iterator __f, const_iterator __l)
void max_load_factor(float __val)
float max_load_factor() const
unordered_set(__move_source< _Self > src)
allocator_type get_allocator() const
void insert(const value_type *__f, const value_type *__l)
_Ht::const_reference const_reference
size_type bucket_count() const
size_type bucket_size(size_type __n) const
unordered_set(const value_type *__f, const value_type *__l, size_type __n=0, const hasher &__hf=hasher(), const key_equal &__eql=key_equal(), const allocator_type &__a=allocator_type())
const_iterator end() const
size_type erase(const key_type &__key)
_Ht::const_pointer const_pointer
size_type max_bucket_count() const
_Ht::value_type value_type
_STLP_TEMPLATE_FOR_CONT_EXT size_type count(const _KT &__key) const
const_local_iterator begin(size_type __n) const
size_type max_size() const
const_local_iterator end(size_type __n) const
const_iterator begin() const
_STLP_TEMPLATE_FOR_CONT_EXT pair< iterator, iterator > equal_range(const _KT &__key)
_STLP_TEMPLATE_FOR_CONT_EXT const_iterator find(const _KT &__key) const
_Ht::local_iterator local_iterator
float load_factor() const
_STLP_TEMPLATE_FOR_CONT_EXT pair< const_iterator, const_iterator > equal_range(const _KT &__key) const
_STLP_PRIV _UnorderedSetTraitsT< _Value > _UnorderedSetTraits
unordered_set< _Value, _HashFcn, _EqualKey, _Alloc > _Self
_Ht::allocator_type allocator_type
unordered_set(const_iterator __f, const_iterator __l, size_type __n=0, const hasher &__hf=hasher(), const key_equal &__eql=key_equal(), const allocator_type &__a=allocator_type())
pair< iterator, bool > insert(const value_type &__obj)
_Ht::const_iterator const_iterator
void rehash(size_type __hint)
_Self & operator=(const _Self &__other)
void erase(const_iterator __f, const_iterator __l)
hasher hash_function() const
void erase(const_iterator __it)
_STLP_TEMPLATE_FOR_CONT_EXT size_type bucket(const _KT &__k) const
_Ht::difference_type difference_type
local_iterator end(size_type __n)
hashtable< _Value, _Value, _HashFcn, _UnorderedSetTraits, _STLP_PRIV _Identity< _Value >, _EqualKey, _Alloc > _Ht
iterator insert(const_iterator, const value_type &__obj)
_Ht::const_local_iterator const_local_iterator
#define _STLP_TEMPLATE_FOR_CONT_EXT
#define _STLP_BEGIN_TR1_NAMESPACE
#define _STLP_KEY_TYPE_FOR_CONT_EXT(type)
#define _STLP_BEGIN_NAMESPACE
#define _STLP_END_NAMESPACE
GLsizei const GLvoid * pointer