Skip to content

STL.natvis: Add visualizers for ranges::less and other comparison objects. - #6016

Merged
Stephan T. Lavavej (StephanTLavavej) merged 3 commits into
microsoft:mainfrom
vmichal:natvis-ranges-less
Jan 20, 2026
Merged

STL.natvis: Add visualizers for ranges::less and other comparison objects.#6016
Stephan T. Lavavej (StephanTLavavej) merged 3 commits into
microsoft:mainfrom
vmichal:natvis-ranges-less

Conversation

@vmichal

Copy link
Copy Markdown
Contributor

Remotely related to #6015

The natvis file previously contained definitions for std::less<T> and std::less<>, but not for ranges::less. This yields a slightly ugly visualization of (not only) flat_meow containers when ranges:: comparison objects are used. I have unified the representation and also reformatted existing definitions to group them logically.

Comment thread stl/debugger/STL.natvis
@StephanTLavavej Stephan T. Lavavej (StephanTLavavej) added the visualizer How the VS debugger displays STL types label Jan 16, 2026
@StephanTLavavej Stephan T. Lavavej (StephanTLavavej) moved this from Initial Review to Ready To Merge in STL Code Reviews Jan 17, 2026
@StephanTLavavej Stephan T. Lavavej (StephanTLavavej) moved this from Ready To Merge to Merging in STL Code Reviews Jan 20, 2026
@StephanTLavavej

Copy link
Copy Markdown
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej
Stephan T. Lavavej (StephanTLavavej) merged commit e543428 into microsoft:main Jan 20, 2026
45 checks passed
@github-project-automation github-project-automation Bot moved this from Merging to Done in STL Code Reviews Jan 20, 2026
@StephanTLavavej

Copy link
Copy Markdown
Member

👓 👁️ 👁️‍🗨️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

visualizer How the VS debugger displays STL types

3 participants