|
🛰️航天仿真算法库 SpaceAST 0.0.1
|
#include <OrderedMap.hpp>
Public 类型 | |
| using | iterator = typename vector_type::iterator |
| using | const_iterator = typename vector_type::const_iterator |
Public 成员函数 | |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| const_iterator | cbegin () const |
| const_iterator | cend () const |
| bool | empty () const noexcept |
| std::size_t | size () const noexcept |
| Value & | at (const Key &key) |
| const Value & | at (const Key &key) const |
| Value & | operator[] (const Key &key) |
| void | insert (const Key &key, const Value &value) |
| void | insert (std::pair< Key, Value > &&pair) |
| iterator | find (const Key &key) |
| const_iterator | find (const Key &key) const |
| bool | contains (const Key &key) const |
| void | clear () |
| std::vector< Key > | keys () const |
| std::vector< Value > | values () const |
| const vector_type & | items () const |
有序映射类,保持键值对的插入顺序
| Key | 键类型 |
| Value | 值类型 |