sparrow 0.9.0
Loading...
Searching...
No Matches
sparrow::mpl::ct_type_predicate Concept Reference

Concept for compile-time type predicates. More...

#include <mp_utils.hpp>

Concept definition

template<template< class > class P, class T>
concept sparrow::mpl::ct_type_predicate = requires {
{ P<T>::value } -> std::convertible_to<bool>;
}
Concept for compile-time type predicates.
Definition mp_utils.hpp:305

Detailed Description

Concept for compile-time type predicates.

This concept matches template types that can be evaluated at compile-time similarly to std::true_type/std::false_type, making it possible to use predicates provided by the standard library.

Template Parameters
PPredicate template to check
TType to apply predicate to
Postcondition
True if P<T>::value is convertible to bool

Definition at line 305 of file mp_utils.hpp.