C++ features by examples
compound_requirements Concept Reference
C++ examples by version
»
C++20 examples
»
Templates
»
Concepts
»
Concept definitions
Concept definition
template
<
typename
T>
concept
compound_requirements
=
requires
(T x) {
{x + 1} -> convertible_to<bool>;
{x * 2} -> same_as<int>;
}
compound_requirements
Definition:
20.cpp:233
Detailed Description
Compound_Requirements
convertible_to
Definition at line
233
of file
20.cpp
.
compound_requirements
Generated by
1.9.3