Jason Volk
|
512b12caf1
|
ircd::util: Refactor pretty(duration) interface; internal template.
|
2020-09-27 18:12:51 -07:00 |
|
Jason Volk
|
407202f85f
|
ircd::util: Improvements to timer tool; fix accumulator semantics; comments.
|
2020-09-10 23:50:47 -07:00 |
|
Jason Volk
|
7b335a8285
|
ircd::util: Move _constexpr_equal() out of util for now.
|
2020-08-04 16:50:56 -07:00 |
|
Jason Volk
|
2b0c3addfe
|
ircd: Fix inlining attributes for clang-10.
|
2020-07-10 20:04:39 -07:00 |
|
Jason Volk
|
4371d803a4
|
ircd: Move fpe out of util.
|
2020-06-17 23:01:23 -07:00 |
|
Jason Volk
|
f0d0705dfd
|
ircd::util: Remove legacy syscall templates. (related eb00134100 )
|
2020-06-14 03:04:59 -07:00 |
|
Jason Volk
|
eb00134100
|
ircd::util: Move syscall() templates out of util; minor reorg includes.
ircd::sys: Add abstract sysfs tool and template from fs::dev.
|
2020-06-11 09:49:33 -07:00 |
|
Jason Volk
|
ee4d64ff28
|
ircd::util: Start an all() convenience template w/ bool specialization.
|
2020-06-08 16:13:00 -07:00 |
|
Jason Volk
|
7064e4f349
|
ircd::util: Improve some comments; minor cleanup.
|
2020-05-28 15:20:32 -07:00 |
|
Jason Volk
|
52831893da
|
ircd::util: Add next_powerof2(u64) constexpr.
|
2020-05-07 21:31:02 -07:00 |
|
Jason Volk
|
f34cc52043
|
ircd::util: Allow variable increment for scope_count.
|
2020-05-06 17:30:12 -07:00 |
|
Jason Volk
|
32d624e3e9
|
ircd::util: Add overload for what() on std::exception value-type.
|
2020-04-23 04:19:53 -07:00 |
|
Jason Volk
|
8058fbc6e9
|
ircd::util: Add template typedef convenience for std::pair.
|
2020-04-12 14:33:47 -07:00 |
|
Jason Volk
|
8050d6d66b
|
ircd::util: Assert for tellp() result >= 0.
|
2020-04-11 13:25:12 -07:00 |
|
Jason Volk
|
0eb66b52d4
|
ircd::util: Apply noexcept to several participating overloads.
|
2020-03-14 17:15:53 -07:00 |
|
Jason Volk
|
d579dd54aa
|
ircd::util: Add pre-c++2a identity functor template.
|
2020-02-26 18:10:41 -08:00 |
|
Jason Volk
|
13469512c3
|
ircd::util: Disable undefined-var-template warning for clang.
|
2020-02-02 17:35:33 -08:00 |
|
Jason Volk
|
9d7e35adb1
|
ircd::util: Inline template definitions for clang.
|
2020-02-01 13:34:45 -08:00 |
|
Jason Volk
|
4970e4f626
|
ircd::util::params: Support prefixed non-positional parameters.
|
2019-12-10 22:02:30 -08:00 |
|
Jason Volk
|
5b3cc11859
|
ircd::util::params: Modernize; remove allocation.
|
2019-12-10 17:51:14 -08:00 |
|
Jason Volk
|
a32e05e9c4
|
ircd::util: Increase constness; remove default template arguments on definition.
|
2019-12-04 23:28:29 -08:00 |
|
Jason Volk
|
df79d61395
|
ircd::util: Elide std::function overhead for util::unwind suite.
|
2019-12-03 13:39:49 -08:00 |
|
Jason Volk
|
b82123e09a
|
ircd::util: Prevent section creation std::function wrapper in ~unwind.
|
2019-10-08 14:56:23 -07:00 |
|
Jason Volk
|
7fd40513f4
|
ircd::util::callbacks: Add default void prototype to template.
|
2019-09-30 14:23:28 -07:00 |
|
Jason Volk
|
98d04ebb2f
|
ircd::util::callbacks: Add note to comment.
|
2019-09-27 21:40:19 -07:00 |
|
Jason Volk
|
2be2d7ca8c
|
ircd::util: Allow integer index on all overloads for precooked format strings.
|
2019-09-22 16:09:15 -07:00 |
|
Jason Volk
|
15c4c3cc63
|
ircd::util: Additional noexcept ctor.
|
2019-09-19 22:07:41 -07:00 |
|
Jason Volk
|
71edd9adee
|
ircd::util: Add maybe() exception tool.
|
2019-09-03 12:15:44 -07:00 |
|
Jason Volk
|
fc98bbc641
|
ircd::util: Add mutable_cast convenience template.
|
2019-09-01 21:06:30 -07:00 |
|
Jason Volk
|
4c924b2a43
|
ircd::util: Add the construction utility device.
|
2019-08-24 16:49:01 -07:00 |
|
Jason Volk
|
a8b3e29cac
|
ircd: Apply noexcept on various constexpr callstacks.
|
2019-08-15 00:05:48 -07:00 |
|
Jason Volk
|
a66db65a1d
|
ircd: Tweak suggestion output; satisfy several suggestions.
|
2019-08-05 16:20:48 -07:00 |
|
Jason Volk
|
2d83f2c201
|
ircd::util::callbacks: Add a callback convenience template.
|
2019-08-03 17:42:21 -07:00 |
|
Jason Volk
|
d394cd4d18
|
ircd::util::callbacks: Typedef access to the template class for derived classes.
|
2019-08-03 16:50:52 -07:00 |
|
Jason Volk
|
7c5ef32008
|
ircd::util: Add a strong boolean typedef customization.
|
2019-08-02 17:34:31 -07:00 |
|
Jason Volk
|
3f5777897b
|
ircd::util: Fix noexcept propagation through enum relaxation operators.
g++-9 warning
|
2019-07-30 13:46:22 -07:00 |
|
Jason Volk
|
59467cf670
|
ircd::util: Add minmax().
|
2019-07-11 18:58:17 -07:00 |
|
Jason Volk
|
c0402f08f4
|
ircd::util: Improve the test trigger prototype.
|
2019-07-10 21:39:47 -07:00 |
|
Jason Volk
|
cf3b1218c4
|
ircd: Misc fixes for clang.
|
2019-06-23 16:22:06 -06:00 |
|
Jason Volk
|
fa7b708e03
|
ircd::util: Fix inline namespace reopening for clang.
|
2019-06-23 07:37:23 -06:00 |
|
Jason Volk
|
7aaee4c68d
|
ircd: Mark recommended noexcept on inline constructors.
|
2019-06-22 17:36:42 -06:00 |
|
Jason Volk
|
91ce49d671
|
ircd::util: Add a weak interface for the test trigger stub.
|
2019-05-24 18:24:33 -07:00 |
|
Jason Volk
|
7d61473fcf
|
ircd::util: Update TODO comment.
|
2019-05-24 18:23:26 -07:00 |
|
Jason Volk
|
0cdbe472d1
|
ircd::util: Add pretty() convenience to timer.
|
2019-04-27 15:51:36 -07:00 |
|
Jason Volk
|
53fed2c4e9
|
ircd::util: Null the instance_list allocator ptr after use.
|
2019-04-19 17:42:34 -07:00 |
|
Jason Volk
|
91a7426899
|
ircd::util: Fix list node allocation related in optimized builds.
|
2019-04-19 16:35:50 -07:00 |
|
Jason Volk
|
c6a59ab6b1
|
ircd::util: Add an unwind::defer device.
|
2019-04-18 05:46:07 -07:00 |
|
Jason Volk
|
4038973297
|
ircd::util: Use allocator::node for instance_list instances.
|
2019-04-16 20:48:00 -07:00 |
|
Jason Volk
|
cd8b645b91
|
ircd::util: Stub a TODO for util::closure.
|
2019-04-09 21:08:15 -07:00 |
|
Jason Volk
|
29775f0866
|
ircd::util: Add hton()/ntoh() in-place swap overloads.
|
2019-04-06 17:12:01 -07:00 |
|
Jason Volk
|
1b0853a9c5
|
ircd::util: Split custom_ptr; make strong type; pointer conversion.
|
2019-04-03 17:18:21 -07:00 |
|
Jason Volk
|
7027264ea2
|
ircd::util::params: Relax class access.
|
2019-03-10 14:25:10 -07:00 |
|
Jason Volk
|
63d591b2b8
|
ircd::util::fpe: Add interface to set the except flag.
|
2019-03-04 13:20:39 -08:00 |
|
Jason Volk
|
8054317106
|
ircd::util: Make scope_count a template.
|
2019-02-28 17:12:03 -08:00 |
|
Jason Volk
|
d8536ca9a9
|
ircd: Move fpe into util.
|
2019-02-16 13:17:44 -08:00 |
|
Jason Volk
|
9f7db84dd3
|
ircd::util: Add string_buffer() reclosure template.
|
2019-02-07 18:29:57 -08:00 |
|
Jason Volk
|
cc636d375f
|
ircd::util: Improve string() suite; add flags for shrink_to_fit().
|
2019-02-07 18:03:21 -08:00 |
|
Jason Volk
|
a30c808b0e
|
ircd: Start a README.md for any directory missing one; fix conformity of existing.
|
2019-01-26 12:29:08 -08:00 |
|
Jason Volk
|
9b703f9915
|
ircd::util: Truncate when stream's tellp is out of range.
|
2019-01-19 17:01:53 -08:00 |
|
Jason Volk
|
067a2f8651
|
ircd::util: Use a long double nanoseconds template rep.
|
2019-01-09 17:05:58 -08:00 |
|
Jason Volk
|
1cb3db6726
|
ircd::util: Add scope_restore; remove scope_light because generalized.
|
2019-01-02 15:19:05 -08:00 |
|
Jason Volk
|
7628b8b7f7
|
ircd::util: Add scope_count tool.
|
2019-01-02 10:48:05 -08:00 |
|
Jason Volk
|
09424ab344
|
ircd::util: Add scope_light tool.
|
2019-01-02 10:47:56 -08:00 |
|
Jason Volk
|
43a354da49
|
ircd::util: Add a format option for pretty_nanoseconds() et al for abbreviated units.
|
2018-12-30 13:38:14 -08:00 |
|
Jason Volk
|
a70d65f171
|
ircd::util: Allow custom format string for pretty() suite.
|
2018-11-28 14:41:27 -08:00 |
|
Jason Volk
|
ad5305f151
|
ircd::util: Use tuple rather than pair for va_rtti value_type.
|
2018-11-28 13:15:42 -08:00 |
|
Jason Volk
|
a7e4acc519
|
ircd: Split and reorg ircd::hash/ircd::crh related headers and units.
|
2018-11-08 17:04:15 -08:00 |
|
Jason Volk
|
13f38782f5
|
ircd::util: Deinline various utils; minor cleanup.
|
2018-10-25 13:39:41 -07:00 |
|
Jason Volk
|
045a944911
|
ircd: Move a2u / pretty() suites from lex_cast to util::; start util.cc unit.
|
2018-10-21 01:00:41 -07:00 |
|
Jason Volk
|
a220891800
|
ircd::util: Support comparator in instance_multimap template.
|
2018-09-29 16:46:55 -07:00 |
|
Jason Volk
|
0d4013536a
|
ircd::util: Add overload to ircd::string() to pubsetbuf() a provided buffer.
|
2018-09-27 17:00:15 -07:00 |
|
Jason Volk
|
d72713d91c
|
ircd::util: Fix comment.
|
2018-09-15 10:15:02 -07:00 |
|
Jason Volk
|
e6a62b41b3
|
ircd::util: Start an env var convenience suite.
|
2018-09-15 03:27:26 -07:00 |
|
Jason Volk
|
16bbecf649
|
ircd::util: Add a callbacks list util.
|
2018-09-15 00:35:57 -07:00 |
|
Jason Volk
|
9f35483e4e
|
ircd: Include unistd.h in stdinc stack; remove the syscall() fwddecl.
|
2018-09-15 00:14:22 -07:00 |
|
Jason Volk
|
0238364421
|
ircd::util: Fix template function reference.
|
2018-09-13 06:39:04 -07:00 |
|
Jason Volk
|
7d94b1c17b
|
ircd: Relax noexcept in std::function template declarations.
|
2018-09-13 05:12:25 -07:00 |
|
Jason Volk
|
5e06c4795b
|
ircd: Replace any std::uncaught_exception() -> std::uncaught_exceptions().
|
2018-09-13 05:02:24 -07:00 |
|
Jason Volk
|
1154d15c5e
|
ircd::util: Add instance_multimap.
|
2018-09-01 21:04:34 -07:00 |
|
Jason Volk
|
349edc2c97
|
ircd::util: Fix instance_list noexcept specification for move semantics.
|
2018-09-01 20:45:04 -07:00 |
|
Jason Volk
|
3ed2a32555
|
ircd::util: Add README blerb to directory.
|
2018-08-17 12:51:48 -07:00 |
|
Jason Volk
|
fd36e553d5
|
ircd::util: Add suite to util::params for fetch-by-name.
|
2018-08-15 23:00:42 -07:00 |
|
Jason Volk
|
69e1c3478f
|
ircd::util: Add index() util.
|
2018-08-15 23:00:42 -07:00 |
|
Jason Volk
|
d1c1fb931f
|
ircd::util: Add specific endian bswaps e.g arpa/inet.h; minor cleanup.
|
2018-07-01 16:39:43 -07:00 |
|
Jason Volk
|
070f359707
|
ircd::util: Add output iterator bounded pointers transform.
|
2018-05-08 14:28:43 -07:00 |
|
Jason Volk
|
63d77c2392
|
ircd::util: Split what(); use default param of std::current_exception().
|
2018-05-07 19:20:59 -07:00 |
|
Jason Volk
|
08be1cb010
|
ircd::util: Elaborate the object semantics for instance_list instances.
|
2018-05-06 22:28:18 -07:00 |
|
Jason Volk
|
671053de74
|
ircd::util: Remove impossible semantics for instance_list.
|
2018-05-06 18:02:33 -07:00 |
|
Jason Volk
|
47dc4c2afa
|
ircd::util: Split various from util.h
|
2018-04-24 17:01:11 -07:00 |
|
Jason Volk
|
b3b11fab7d
|
ircd::util: Fix conditions for is_zero template test.
|
2018-04-11 23:40:30 -07:00 |
|
Jason Volk
|
05fcdd458a
|
ircd::util: Assert the stream didn't overflow our buffer.
|
2018-04-06 22:35:14 -07:00 |
|
Jason Volk
|
4760d36847
|
ircd::ctx: Move unlock_guard from util:: to ctx::.
|
2018-03-28 22:17:09 -07:00 |
|
Jason Volk
|
15c65924ee
|
ircd::util: Abstract stringstream utils into template; add view hack.
|
2018-03-25 23:17:42 -07:00 |
|
Jason Volk
|
a68d97d22d
|
ircd::util: Static assertion of va_rtti argument count.
|
2018-03-22 13:31:58 -07:00 |
|
Jason Volk
|
6dc834b9c9
|
ircd::util: Add unwind utils that assert whether exception is taking place.
|
2018-03-14 20:23:54 -07:00 |
|
Jason Volk
|
12fb9747a7
|
ircd::util: Add template to remove_all_pointers<T>.
|
2018-03-11 17:03:06 -07:00 |
|
Jason Volk
|
19e6db0a33
|
ircd::util: Add util to get what() from std::exception_ptr.
|
2018-03-08 08:23:50 -08:00 |
|
Jason Volk
|
a9b87a5c09
|
ircd::util: Add pointer transform suite.
|
2018-03-03 21:53:09 -08:00 |
|
Jason Volk
|
98ceb154c3
|
ircd::util: Retype ctype<> for const_buffer; fix return type; simplify loop.
|
2018-02-20 15:40:40 -08:00 |
|
Jason Volk
|
3683341aa9
|
ircd::util: Ensure null termination after all direct writes into string.
|
2018-02-18 22:38:23 -08:00 |
|