ConceptC++ Concept Web

Concept Swappable

auto concept Swappable<typename T> {
  void swap(T& t, T& u);
};

Where Defined

#include <concepts>

Description

Concept Swappable requires that two values t and u can be swapped, after which t has the value originally held by u and u has the value originally held by t.