forked from boostorg/unordered
Move capacity functions to match order in standard
This commit is contained in:
@ -190,14 +190,6 @@ template <class K, class T, class H, class P, class A> class unordered_map
|
||||
return table_.node_alloc();
|
||||
}
|
||||
|
||||
// size and capacity
|
||||
|
||||
bool empty() const BOOST_NOEXCEPT { return table_.size_ == 0; }
|
||||
|
||||
size_type size() const BOOST_NOEXCEPT { return table_.size_; }
|
||||
|
||||
size_type max_size() const BOOST_NOEXCEPT;
|
||||
|
||||
// iterators
|
||||
|
||||
iterator begin() BOOST_NOEXCEPT { return iterator(table_.begin()); }
|
||||
@ -218,6 +210,14 @@ template <class K, class T, class H, class P, class A> class unordered_map
|
||||
|
||||
const_iterator cend() const BOOST_NOEXCEPT { return const_iterator(); }
|
||||
|
||||
// size and capacity
|
||||
|
||||
bool empty() const BOOST_NOEXCEPT { return table_.size_ == 0; }
|
||||
|
||||
size_type size() const BOOST_NOEXCEPT { return table_.size_; }
|
||||
|
||||
size_type max_size() const BOOST_NOEXCEPT;
|
||||
|
||||
// extract
|
||||
|
||||
node_type extract(const_iterator position)
|
||||
@ -913,14 +913,6 @@ template <class K, class T, class H, class P, class A> class unordered_multimap
|
||||
return table_.node_alloc();
|
||||
}
|
||||
|
||||
// size and capacity
|
||||
|
||||
bool empty() const BOOST_NOEXCEPT { return table_.size_ == 0; }
|
||||
|
||||
size_type size() const BOOST_NOEXCEPT { return table_.size_; }
|
||||
|
||||
size_type max_size() const BOOST_NOEXCEPT;
|
||||
|
||||
// iterators
|
||||
|
||||
iterator begin() BOOST_NOEXCEPT { return iterator(table_.begin()); }
|
||||
@ -941,6 +933,14 @@ template <class K, class T, class H, class P, class A> class unordered_multimap
|
||||
|
||||
const_iterator cend() const BOOST_NOEXCEPT { return const_iterator(); }
|
||||
|
||||
// size and capacity
|
||||
|
||||
bool empty() const BOOST_NOEXCEPT { return table_.size_ == 0; }
|
||||
|
||||
size_type size() const BOOST_NOEXCEPT { return table_.size_; }
|
||||
|
||||
size_type max_size() const BOOST_NOEXCEPT;
|
||||
|
||||
// extract
|
||||
|
||||
node_type extract(const_iterator position)
|
||||
|
@ -188,14 +188,6 @@ template <class T, class H, class P, class A> class unordered_set
|
||||
return table_.node_alloc();
|
||||
}
|
||||
|
||||
// size and capacity
|
||||
|
||||
bool empty() const BOOST_NOEXCEPT { return table_.size_ == 0; }
|
||||
|
||||
size_type size() const BOOST_NOEXCEPT { return table_.size_; }
|
||||
|
||||
size_type max_size() const BOOST_NOEXCEPT;
|
||||
|
||||
// iterators
|
||||
|
||||
iterator begin() BOOST_NOEXCEPT { return iterator(table_.begin()); }
|
||||
@ -216,6 +208,14 @@ template <class T, class H, class P, class A> class unordered_set
|
||||
|
||||
const_iterator cend() const BOOST_NOEXCEPT { return const_iterator(); }
|
||||
|
||||
// size and capacity
|
||||
|
||||
bool empty() const BOOST_NOEXCEPT { return table_.size_ == 0; }
|
||||
|
||||
size_type size() const BOOST_NOEXCEPT { return table_.size_; }
|
||||
|
||||
size_type max_size() const BOOST_NOEXCEPT;
|
||||
|
||||
// extract
|
||||
|
||||
node_type extract(const_iterator position)
|
||||
@ -654,14 +654,6 @@ template <class T, class H, class P, class A> class unordered_multiset
|
||||
return table_.node_alloc();
|
||||
}
|
||||
|
||||
// size and capacity
|
||||
|
||||
bool empty() const BOOST_NOEXCEPT { return table_.size_ == 0; }
|
||||
|
||||
size_type size() const BOOST_NOEXCEPT { return table_.size_; }
|
||||
|
||||
size_type max_size() const BOOST_NOEXCEPT;
|
||||
|
||||
// iterators
|
||||
|
||||
iterator begin() BOOST_NOEXCEPT { return iterator(table_.begin()); }
|
||||
@ -682,6 +674,14 @@ template <class T, class H, class P, class A> class unordered_multiset
|
||||
|
||||
const_iterator cend() const BOOST_NOEXCEPT { return const_iterator(); }
|
||||
|
||||
// size and capacity
|
||||
|
||||
bool empty() const BOOST_NOEXCEPT { return table_.size_ == 0; }
|
||||
|
||||
size_type size() const BOOST_NOEXCEPT { return table_.size_; }
|
||||
|
||||
size_type max_size() const BOOST_NOEXCEPT;
|
||||
|
||||
// extract
|
||||
|
||||
node_type extract(const_iterator position)
|
||||
|
Reference in New Issue
Block a user