forked from boostorg/unordered
Write release notes and documentation for natvis
This commit is contained in:
@ -18,6 +18,7 @@ include::unordered/concurrent.adoc[]
|
|||||||
include::unordered/hash_quality.adoc[]
|
include::unordered/hash_quality.adoc[]
|
||||||
include::unordered/compliance.adoc[]
|
include::unordered/compliance.adoc[]
|
||||||
include::unordered/structures.adoc[]
|
include::unordered/structures.adoc[]
|
||||||
|
include::unordered/debuggability.adoc[]
|
||||||
include::unordered/benchmarks.adoc[]
|
include::unordered/benchmarks.adoc[]
|
||||||
include::unordered/rationale.adoc[]
|
include::unordered/rationale.adoc[]
|
||||||
include::unordered/ref.adoc[]
|
include::unordered/ref.adoc[]
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
* Added container `pmr` aliases when header `<memory_resource>` is available. The alias `boost::unordered::pmr::[container]` refers to `boost::unordered::[container]` with a `std::pmr::polymorphic_allocator` allocator type.
|
* Added container `pmr` aliases when header `<memory_resource>` is available. The alias `boost::unordered::pmr::[container]` refers to `boost::unordered::[container]` with a `std::pmr::polymorphic_allocator` allocator type.
|
||||||
* Equipped open-addressing and concurrent containers to internally calculate and provide statistical metrics affected by the quality of the hash function. This functionality is enabled by the global macro `BOOST_UNORDERED_ENABLE_STATS`.
|
* Equipped open-addressing and concurrent containers to internally calculate and provide statistical metrics affected by the quality of the hash function. This functionality is enabled by the global macro `BOOST_UNORDERED_ENABLE_STATS`.
|
||||||
* Avalanching hash functions must now be marked via an `is_avalanching` typedef with an embedded `value` constant set to `true` (typically, defining `is_avalanching` as `std::true_type`). `using is_avalanching = void` is deprecated but allowed for backwards compatibility.
|
* Avalanching hash functions must now be marked via an `is_avalanching` typedef with an embedded `value` constant set to `true` (typically, defining `is_avalanching` as `std::true_type`). `using is_avalanching = void` is deprecated but allowed for backwards compatibility.
|
||||||
|
* Added Visual Studio Natvis framework custom visualizations for containers and iterators. This works for all containers with an allocator using raw pointers. In this release, containers and iterators are not supported if their allocator uses fancy pointers. This may be addressed in later releases.
|
||||||
|
|
||||||
== Release 1.85.0
|
== Release 1.85.0
|
||||||
|
|
||||||
|
16
doc/unordered/debuggability.adoc
Normal file
16
doc/unordered/debuggability.adoc
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
[#debuggability]
|
||||||
|
:idprefix: debuggability_
|
||||||
|
|
||||||
|
= Debuggability
|
||||||
|
|
||||||
|
== Visual Studio Natvis
|
||||||
|
|
||||||
|
All containers and iterators have custom visualizations in the Natvis framework, as long as their allocator uses regular raw pointers. Any container or iterator with an allocator using fancy pointers does not have a custom visualization right now.
|
||||||
|
|
||||||
|
The visualizations mirror those for the standard unordered containers. A container has a maximum of 100 elements displayed at once. Each set element has its item name listed as `[i]`, where `i` is the index in the display, starting at `0`. Each map element has its item name listed as `[\{key-display}]` by default. For example, if the first element is the pair `("abc", 1)`, the item name will be `["abc"]`. This behaviour can be overridden by using the view "ShowElementsByIndex", which switches the map display behaviour to name the elements by index. This same view name is used in the standard unordered containers.
|
||||||
|
|
||||||
|
By default, the closed-addressing containers will show the `[hash_function]` and `[key_eq]`, the `[spare_hash_function]` and `[spare_key_eq]` if applicable, the `[allocator]`, and the elements. Using the view "detailed" adds the `[bucket_count]` and `[max_load_factor]`. Conversely, using the view "simple" shows only the elements, with no other items present.
|
||||||
|
|
||||||
|
By default, the open-addressing containers will show the `[hash_function]`, `[key_eq]`, `[allocator]`, and the elements. Using the view "simple" shows only the elements, with no other items present. Both the SIMD and the non-SIMD implementations are viewable through the Natvis framework.
|
||||||
|
|
||||||
|
Iterators are displayed similarly to their standard counterparts. An iterator is displayed as though it were the element that it points to. An end iterator is simply displayed as `\{ end iterator }`.
|
Reference in New Issue
Block a user