🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
ast::OrderedMap< Key, Value > 模板类 参考

#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
 
Valueat (const Key &key)
 
const Valueat (const Key &key) const
 
Valueoperator[] (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< Valuevalues () const
 
const vector_type & items () const
 

详细描述

template<typename Key, typename Value>
class ast::OrderedMap< Key, Value >

有序映射类,保持键值对的插入顺序

模板参数
Key键类型
Value值类型

该类的文档由以下文件生成: