Mr.Docs The C++ Alliance GitHub Repo
  • Mr.Docs
  • Reference
  • mrdocs
  • operator_3way-0b
master develop 2026.11.10 2026.9.29 2026.9.4 v0.8.0
Mr.Docs The C++ Alliance GitHub Repo

Mr.Docs

    • Getting Started
      • Demo Gallery
      • Installation
      • Basic Usage
      • Migration Notes
      • Bootstrap Reference
    • Commands
      • Overview
      • Block Commands
      • Metadata Commands
      • Inline Commands
      • Reference
    • Configuration
      • Overview
      • Inputs
      • Filters
      • Extraction
      • Output
      • Diagnostics
      • Reference
    • Generators
      • Overview
      • HTML
      • AsciiDoc
      • JSON
      • XML
      • No-op
      • Data-Driven Generators
      • Handlebars Extensions
      • Reference
    • Pipeline Extensions
      • Overview
      • Defining Extensions
      • Corpus Transforms
      • Programmatic Generators
    • Integrations
      • Antora Extensions
      • Mr.Docs as a Library
      • Library Reference
    • Contribute
      • Quickstart
      • Developer Workflow
      • Codebase Layout
        • src/
        • include/
        • libs/
        • tests/
        • examples/
        • docs/
        • data/
        • tools/
        • utils/
      • Docs changes
      • Testing & fixtures
      • Project Invariants
        • Documentation
        • Code Generation
        • Layout
        • Build Invariants
        • Naming and Layout
        • Formatting
        • C++ Conventions
        • Binary Compatibility
        • Git Repository
      • Utilities
        • Bootstrap
      • How to Contribute a Feature

mrdocs::operator<=>

Compare two polymorphic types by visitor dispatch.

Synopsis

Declared in <mrdocs/Metadata/Type/TypeBase.hpp>

std::strong_ordering
operator<=>(
    Polymorphic<Type> const& lhs,
    Polymorphic<Type> const& rhs);

Return Value

The relative order of the objects

Parameters

Name

Description

lhs

The left operand

rhs

The right operand

Created with MrDocs