Commit graph

295 commits

Author SHA1 Message Date
6cf5eb008b Support operator--() for util::utf8_iterator 2025-04-13 12:42:51 +03:00
42260d4d7d Replace template operator() of util::function with a fixed-arg version to put all implicit conversions & list initializations to the actual call site 2025-03-06 18:20:40 +03:00
4dc8b6a183 Use _WIN32 macro to detect Windows (instead of other macro variants) 2025-03-04 20:00:03 +03:00
d41c53193d Use wide strings in util::executable_path() 2025-03-04 19:59:04 +03:00
72694664de Add util::moving_average::max_count() 2025-02-21 22:26:24 +03:00
6fc476f1f0 Support building without Boost.Stacktrace 2025-01-26 14:45:43 +03:00
2c3565df61 32-bit compilation fixes:
* Use uint64_t instead of size_t as hash return value

 * Expect alignof(uint64_t) <= 8 instead of == 8
2025-01-25 20:35:37 +03:00
a49be3b253 Fix util::hash_map with std::pair as keys 2025-01-21 14:10:30 +03:00
6971b8545a Add util::null_ostream 2024-11-18 16:36:02 +03:00
d66092b86d Add fixed-point arithmetic implementation 2024-09-05 23:16:18 +03:00
954068ba3a Fix merging util::statistics 2024-08-22 19:53:53 +03:00
3dde4d6b55 Remove template dependance on float/double in util::statistics_log_bucket 2024-08-21 19:17:10 +03:00
82f7d5d429 Rename util::begin/end -> xbegin/xend to prevent ambiguity via ADL 2024-08-17 20:19:07 +03:00
ddaf2407a9 Fix math overflow crash in computing profiling statistics 2024-07-29 14:16:51 +03:00
d2ba791be1 Support subscribing to util::signal without the need to keep the subscription token 2024-07-19 21:14:38 +03:00
5df29246a5 Fix util::at(vector) 2024-07-17 19:43:54 +03:00
54fb90214f Add missing non-template methods for hash table 2024-07-11 18:22:08 +03:00
30877401a3 Add log-bucketing statistics in util 2024-06-03 23:25:29 +03:00
6c5815ff76 Add util::spatial_array::empty 2024-06-03 23:25:14 +03:00
488290be4f Refactor util::statistics and use a more robust mean & variance computation algorithm 2024-06-03 21:00:19 +03:00
f8c52bcfe2 Use truncated normal distribution for percentile approximation in util::statistics_lite 2024-06-03 20:32:26 +03:00
22a57f91db Huge refactor: use util::hash_table instead of std::unordered everywhere 2024-06-03 14:36:39 +03:00
e79266d7e2 Make util::hash_table::empty() const 2024-06-03 14:36:09 +03:00
cbd99d1c4d Make util::hash_table more heterogeneous-friendly 2024-06-03 14:35:58 +03:00
91c2dbca67 Fixed in util::hash_table clearing & destructor 2024-06-02 15:47:41 +03:00
44d30a6f8d Add fake percentile computation in util::statistics_lite based on normal distribution 2024-06-02 15:46:56 +03:00
100e2d6af8 Add missing includes in util/ebo 2024-06-02 15:32:26 +03:00
7333bcd922 Support removal from util::hash_table and add more hash table tests 2024-06-01 14:56:53 +03:00
c6f9fbd244 Add util::hash_all for creating a hash out of a bunch of objects 2024-05-21 13:21:01 +03:00
1538fa002f Support util::function constructing from & assigning to nullptr 2024-05-20 16:41:01 +03:00
c18a8ba2c5 Add implicit util::hstring(const char*) constructor 2024-04-26 13:13:53 +03:00
83f92ae9cb Add util::dsu 2024-03-18 15:06:07 +03:00
153cc87986 Add non-template access methods to util::hash_table 2024-03-12 20:29:29 +03:00
24a74b1208 Add util::any_set::insert 2024-03-11 23:34:42 +03:00
57aceed172 Remove duplicate hash_table::operator[] (how did this even happen?) 2024-03-03 02:14:41 +03:00
4ff36a61ba Add util::hash_map::operator[] 2024-02-28 17:06:48 +03:00
d1104f9aac Fix util::thread move assignment operator 2024-02-28 17:06:48 +03:00
e28a78166e Support edge ids in util::pathfinder 2024-02-07 22:01:42 +03:00
740fab84be Add copying and constructing from initializer_list for util::hash_table 2024-02-07 22:01:19 +03:00
929e8091dc Fix perfect forwarding in constructor args in util::pathfinder 2024-02-07 14:14:13 +03:00
e6f5fc17a4 Remove useless code in pathfinder & support retrieving full path 2024-01-29 19:16:17 +03:00
099a09e4d9 Use util::hash_map instead of std::unordered_map for pathfinder 2024-01-29 17:44:27 +03:00
64a6713b61 Implement util::hash_table::operator[] and at() 2024-01-29 17:44:11 +03:00
368d1edd71 Remove duplicate util::key_error exception, don't require the key to be convertible to string 2024-01-29 17:43:52 +03:00
00231ce3f6 Fix missing include 2024-01-02 18:24:13 +03:00
0998da6329 Add helper functions for constructing util::span 2024-01-02 16:04:26 +03:00
bcae6dde4e Revert "Make util::assertion_handler return void"
This reverts commit ac0f45d9f0.
2023-12-04 18:33:00 +03:00
ac0f45d9f0 Make util::assertion_handler return void 2023-12-04 11:37:44 +03:00
8c8ede7587 Add util::split(string, delim) 2023-10-01 01:19:31 +03:00
1d20bd5a17 Fix util::hash_table inserting non-const pair 2023-08-26 12:32:54 +03:00