mirror of
https://github.com/BlackMATov/flat.hpp.git
synced 2025-12-16 14:09:01 +07:00
add capacity interface
This commit is contained in:
12
flat_map.hpp
12
flat_map.hpp
@@ -110,6 +110,18 @@ namespace flat_hpp
|
||||
const_reverse_iterator rend() const noexcept { return data_.rend(); }
|
||||
const_reverse_iterator crend() const noexcept { return data_.crend(); }
|
||||
|
||||
bool empty() const noexcept {
|
||||
return data_.empty();
|
||||
}
|
||||
|
||||
size_type size() const noexcept {
|
||||
return data_.size();
|
||||
}
|
||||
|
||||
size_type max_size() const noexcept {
|
||||
return data_.max_size();
|
||||
}
|
||||
|
||||
template < typename P
|
||||
, typename = std::enable_if_t<std::is_constructible<value_type, P>::value> >
|
||||
std::pair<iterator, bool> insert(P&& p) {
|
||||
|
||||
Reference in New Issue
Block a user