Michele Caini
2e6cfc08f0
registry: refine storage proxy iterator and guarantee iterator conversions
2022-03-25 17:20:23 +01:00
Michele Caini
b8bb509d5c
resource:
...
* drop the resource_loader class
* made the loader a template parameter of the resource_cache
* updated the API of the resource_cache
2022-03-23 15:31:55 +01:00
Michele Caini
990baa0929
test: typo
2022-03-21 16:14:20 +01:00
Michele Caini
7b25eacfc8
dense_map:
...
* try_emplace should not consume arguments if the element exists
* clean up
2022-03-18 10:51:16 +01:00
Michele Caini
dcb7c0c27e
dense_map: constrain the allocator type
2022-03-17 11:39:45 +01:00
Michele Caini
f432dc6bdc
dense_map:
...
* uses-allocator construction
* iterators model forward/random access iter types but are in the input iter category
* iter value_type is pair<const T &, U &>/pair<const T &, const U &> (zip iter types)
* no risky UBs due to type punning or destroy/construct within a vector
2022-03-17 11:39:45 +01:00
Michele Caini
ce21ee6001
test: minor changes
2022-03-17 11:39:36 +01:00
Michele Caini
a431f5a674
registry: allow creating pools during a destroy ( close #853 )
2022-03-16 17:18:14 +01:00
Michele Caini
c17ecbc78c
resource: add operator==/!= to resource handles
2022-03-16 17:17:35 +01:00
Michele Caini
0c1371ffae
test: suppress warning due to unused variables
2022-03-16 17:16:54 +01:00
Michele Caini
8a350acf39
dispatcher: allocator support
2022-03-16 17:16:50 +01:00
Michele Caini
e13d06fe20
component: reintroduce utility ignore_as_empty_v (it's actually useful sometimes)
2022-03-16 17:16:32 +01:00
Michele Caini
805bb84c8f
component_traits:
...
* removed ::ignore_if_empty member
* use ::page_size 0 for empty types
2022-03-16 17:16:21 +01:00
Michele Caini
03d0f3e9ca
test: merge no-eto tests with registry tests
2022-03-16 17:15:18 +01:00
Michele Caini
c89bf30e05
meta: dereferencing a pointer-like object which converts to bool works in all cases (false implies empty meta_any)
2022-03-16 17:14:32 +01:00
Michele Caini
21f00cf251
meta: make meta_sequence_container::meta_iterator model a bidirectional iterator (and keep staying in the input iterator category)
2022-03-16 17:14:10 +01:00
Michele Caini
52f77d61ba
sigh:
...
* fixed doc
* test review/cleanup
2022-03-16 17:13:16 +01:00
Michele Caini
5adf332a5f
registry: ::sortable -> ::owned for component types ( close #847 )
2022-03-16 17:13:04 +01:00
Michele Caini
efbb32a498
sparse_set: added the ::bump function
2022-03-16 17:12:56 +01:00
Michele Caini
772ac64e3b
config: add ENTT_VERSION
2022-03-16 17:11:03 +01:00
Michele Caini
200425114c
test: address some feedback by iwyu
2022-03-16 17:10:40 +01:00
Michele Caini
bdb7763237
sigh: rebind allocator internally
2022-02-27 17:45:50 +01:00
Michele Caini
59b0dc6735
test: minor changes
2022-02-25 14:09:22 +01:00
Michele Caini
dc238db355
compressed_pair: correctly manage references with piecewise construction
2022-02-24 11:33:12 +01:00
Michele Caini
4c692c23bb
test: refine tracked_memory_resource::do_is_equal
2022-02-24 11:33:04 +01:00
Michele Caini
b093e82db3
memory: uninitialized_construct_using_allocator (waiting for C++20)
2022-02-23 09:41:32 +01:00
Michele Caini
7a1c2108a1
dispatcher: enable fetching the number of pending events ( #848 )
...
Co-authored-by: WoLfulus <WoLfulus@users.noreply.github.com >
2022-02-23 08:42:33 +01:00
Michele Caini
cdaced4df6
memory: uses_allocator_construction_args pairs support
2022-02-23 00:19:55 +01:00
Michele Caini
cdd029853b
any:
...
* strong exception guarantee applies
* a test to avoid future regressions
2022-02-22 15:03:07 +01:00
Michele Caini
507bafdd9c
any/meta_any: revert changes to introduce ::hash
2022-02-22 12:15:09 +01:00
Michele Caini
a205e7ada9
test: it's not a good idea to use discarded values, the sanitizer may complain :)
2022-02-22 09:55:03 +01:00
Michele Caini
b2edfa454c
test: minor changes (to please all compilers)
2022-02-22 09:30:46 +01:00
Michele Caini
07767a09d9
doc: fixed typo
2022-02-22 08:40:25 +01:00
Michele Caini
e8d85d9269
resource: updated doc/tests
2022-02-22 08:15:09 +01:00
Michele Caini
5cf0ba079f
memory: make_obj_using_allocator utility (waiting for C++20)
2022-02-21 16:31:36 +01:00
Michele Caini
e08b1f82ce
memory: uses_allocator_construction_args (waiting for C++20)
2022-02-21 08:07:01 +01:00
Michele Caini
c2196149ee
test: minor changes
2022-02-20 23:55:04 +01:00
Michele Caini
f4418e0205
test: increase code coverage
2022-02-19 10:46:18 +01:00
Michele Caini
a314f7b42e
test: minor changes (code coverage)
2022-02-19 10:41:35 +01:00
Michele Caini
dc5a72cda5
dense set:
...
* cleaned up implementation
* uses-allocator construction support
* a few more tests
2022-02-19 09:49:47 +01:00
Michele Caini
83f7e633a3
tests: allocate_unique with types that don't support uses-allocator construction
2022-02-18 17:08:07 +01:00
Michele Caini
ab1c920435
tests: storage with types that don't support uses-allocator construction
2022-02-18 17:07:44 +01:00
Michele Caini
7094d658f8
test: minor changes
2022-02-18 13:47:59 +01:00
Michele Caini
790aa03834
scheduler: allow attaching tasks from already running processes ( close #845 )
2022-02-18 11:34:42 +01:00
Michele Caini
3f1dee2650
dense_set: uses-allocator construction
2022-02-17 09:02:35 +01:00
Michele Caini
6822c0f0e3
test: minor changes
2022-02-13 18:40:14 +01:00
Michele Caini
0a155ecb68
test: uses-allocator construction guaranteed for allocate_unique
2022-02-13 18:33:31 +01:00
Michele Caini
15fff94447
test: uses-allocator construction guaranteed for storage classes
2022-02-13 18:32:58 +01:00
Michele Caini
ff06df2acb
test: tracked_memory_resource utility
2022-02-13 18:32:10 +01:00
Michele Caini
df9301d591
bjuild system/tests: check for <version> (old compilers support)
2022-02-13 18:31:26 +01:00