Mr.Docs The C++ Alliance GitHub Repo
  • Mr.Docs
  • Reference
  • mrdocs
  • dom
  • swap-0ff
master develop 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
    • 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
      • Reference
    • Extensions
      • Overview
      • Handlebars Extensions
      • Data-Driven Generators
      • Corpus Transforms
      • Script Generators
      • Antora Extensions
      • Mr.Docs as a Library
      • Script Engines
      • Library Reference
    • Contribute
      • Contributor Quickstart
      • Workflow & PR hygiene
      • Testing & fixtures
      • Options & architecture
      • Codebase tour
      • Docs changes

mrdocs::dom::swap

Swap two objects.

Synopsis

Declared in <mrdocs/Dom/Function.hpp>

void
swap(
    Function& lhs,
    Function& rhs) noexcept;

This function is a hidden friend of Function, declared only inside that class: it can be found only through argument-dependent lookup.

Parameters

Name

Description

lhs

The first object.

rhs

The second object.

Created with MrDocs