std::meta::is_concept
From cppreference.com
| 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
Run this code
#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) |