C++ features by examples
|
Functions | |
template<typename T > requires is_integral_v<T> | |
constexpr T | requires_demo (T a) |
template<typename T > requires is_same_v<T, double> | |
constexpr auto | requires_demo (T &&a) |
template<class T > requires is_signed_v<T> || (is_unsigned_v<T> && ! is_void_v<void>) | |
void | complex_requirement_demo () |
template<class T > requires requires() { true;} | |
void | requires_expression_demo () |
Annotated example of requires-expression. More... | |
template<class T > requires requires(T a) { a / 0; } | |
constexpr auto | what (T a) |
void complex_requirement_demo | ( | ) |
|
constexpr |
|
constexpr |
void requires_expression_demo | ( | ) |