std::meta::is_concept
Defined in header <meta> | ||
|---|---|---|
consteval bool is_concept( std::meta::info r ); | (since C++26) |
Returns true if r represents a concept. Otherwise returns false.
Parameters
| r | - | a reflection value |
Return value
true if r represents a concept; otherwise false.
Example
#include <meta>
#include <type_traits>
// concept is a template
template<class T, class U>
concept Derived = std::is_base_of<U, T>::value;
static_assert(std::meta::is_template(^^Derived));
int main() {}
See also
|
(C++26) | checks if reflected entity is a template (function) |
|
(C++26) | obtains the template arguments of the reflected entity (function) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/meta/is_concept