comparable

February 5, 2026 ยท View on GitHub

Shows how to use xtd::comparable concept.

Sources

  • src/comparable.cpp
  • CMakeLists.txt

Build and run

Open "Command Prompt" or "Terminal". Navigate to the folder that contains the project and type the following:

xtdc run

Output

max = 42
max = 62.8
min = 1.2.3
min = 00:00:04.1220000

Contents

  1. 1Sources
  2. 2Build and run
  3. 3Output