C++ features by examples
compound_requirements Concept Reference

Concept definition

template<typename T>
requires(T x) {
{x + 1} -> convertible_to<bool>;
{x * 2} -> same_as<int>;
}

Detailed Description

Compound_Requirements convertible_to

Definition at line 233 of file 20.cpp.