バナーをクリックすれば目次に戻ります
Copyright 1999 Rogue Wave Software
Copyright 1999 Sun Microsystems, Inc.
rw_hashset
#include <rw/rwstl/hashset.h> rw_hashset<T,Hash,EQ> set;
typedef T key_type; typedef T value_type; // または ... "const K" typedef Hash key_hash; typedef EQ key_equal; typedef (unsigned) size_type; //rw_slist から typedef (int) difference_type; //rw_slist から typedef (value_type&) reference; typedef (const value_type&) const_reference; //rw_slist からrw_hashset<T,Hash,EQ> の反復子は順方向反復子です。
typedef (scoped Iterator) iterator; typedef (scoped ConsIterator) const_iterator;
rw_hashset<T,Hash,EQ>(size_type sz = 1024, const Hash& h = Hash(), const EQ& eq = EQ());
rw_hashset<T,Hash,EQ>(const rw_hashset<T,Hash,EQ>& set);
rw_hashset<T,Hash,EQ>(const_iterator first, const_iterator bound, size_type sz=1024, const Hash& h = Hash(), const EQ& eq = EQ());
rw_hashset<T,Hash,EQ>(const value_type* first, const value_type* bound, size_type sz=1024, const Hash& h = Hash(), const EQ& eq = EQ());
~rw_hashset<T,Hash,EQ>();
rw_hashset<T,Hash,EQ>& operator=(const rw_hashset<T,Hash,EQ>& rhs);
bool operator==(const rw_hashset<T,Hash,EQ> & rhs) const;
iterator begin();
const_iterator begin() const;
iterator end();
const_iterator end() const;
pair<const_iterator, const_iterator> equal_range(const key_type key) const;
pair<iterator, iterator> equal_range(const key_type key);
onst_iterator lower_bound(const key_type& key) const;
iterator lower_bound(const key_type& key);
const_iterator upper_bound(const key_type& key) const;
iterator upper_bound(const key_type& key);
size_type capacity() const;
bool empty() const;
float fill_ratio() const;
size_type size() const;
void clear();
size_type erase(const key_type& key);
iterator erase(iterator iter);
iterator erase(iterator first, iterator bound);
pair<iterator,bool> insert(const value_type& val);
size_type insert(iterator ignore, const value_type& val);
size_type insert(const value_type* first, const value_type* bound);
size_type insert(const_iterator first, const_iterator bound);
void swap(rw_hashset<T,Hash,EQ>& other);
size_type count(const key_type& key) const;
const_iterator find(const key_type& key) const;
iterator find(const key_type& key);
void resize(size_type sz);