42 void add(
const Key &key,
const Value &value)
46 void add(
const Key &key, Value &&value)
48 this->
add_as(key, std::move(value));
50 void add(
Key &&key,
const Value &value)
52 this->
add_as(std::move(key), value);
56 this->
add_as(std::move(key), std::move(value));
58 template<
typename ForwardKey,
typename ForwardValue>
59 void add_as(ForwardKey &&key, ForwardValue &&value)
62 vector.append(std::forward<ForwardValue>(value));
68 vector.append_non_duplicates(value);
115 return vector->as_mutable_span();
131 typename MapType::ItemIterator
items()
const
139 typename MapType::KeyIterator
keys()
const
147 typename MapType::ValueIterator
values()
const
#define BLI_STRUCT_EQUALITY_OPERATORS_1(Type, m)
ValueIterator values() const
Value & lookup_or_add_default_as(ForwardKey &&key)
const Value * lookup_ptr_as(const ForwardKey &key) const
ItemIterator items() const
MapType::KeyIterator keys() const
void add(const Key &key, Value &&value)
Span< Value > lookup_as(const ForwardKey &key) const
void add(Key &&key, const Value &value)
Span< Value > lookup(const Key &key) const
void add(Key &&key, Value &&value)
void add_non_duplicates(const Key &key, const Value &value)
void add_multiple(const Key &key, Span< Value > values)
MutableSpan< Value > lookup_as(const ForwardKey &key)
MutableSpan< Value > lookup(const Key &key)
void add_multiple(Key &&key, Span< Value > values)
MapType::ItemIterator items() const
void add_multiple_as(ForwardKey &&key, Span< Value > values)
void add_as(ForwardKey &&key, ForwardValue &&value)
void add(const Key &key, const Value &value)
MapType::ValueIterator values() const