Changeset 1288 for cpp/common/util-stl.h
- Timestamp:
- 12/06/23 03:32:58 (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified cpp/common/util-stl.h ¶
r1130 r1288 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-202 1Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2023 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 13 13 for (unsigned int i = 0; i < N; i++) 14 14 v.push_back(d[i]); 15 } 16 17 template<typename T> void push_back(vector<T>& to, const vector<T>& from) 18 { 19 for (auto &e : from) 20 to.push_back(e); 15 21 } 16 22 … … 37 43 } 38 44 39 template<typename Key, typename Value> Value mapValueOrDefault(const std::map<Key,Value> &map, const Key& key, const Value& default_value)45 template<typename Key, typename Value> Value mapValueOrDefault(const std::map<Key, Value> &map, const Key& key, const Value& default_value) 40 46 { 41 47 auto found = map.find(key);
Note: See TracChangeset
for help on using the changeset viewer.