Files
test2/source/blender/blenlib
Jacques Lucke 4ae1ca34a3 BLI: support constructing Map with items
This adds support for constructing a `Map` directly from key-value-pairs.
If the same key exists multiple times, only the first one is taken into account.

Note: the keys and values are copied into the map (not moved). This is because
an `std::initializer_list` is read-only. If move-behavior is needed, it is better to
use the existing `map.add*` functions.

```cpp
Map<int, std::string> map = {{1, "where"}, {3, "when"}, {5, "why"}};
````

Pull Request: https://projects.blender.org/blender/blender/pulls/130470
2024-11-19 14:47:58 +01:00
..
2024-02-06 14:52:15 +01:00
2024-01-31 14:16:22 +01:00
2024-01-03 13:38:14 +01:00
2024-03-25 23:39:42 +01:00
2024-10-01 09:59:33 +10:00