sparrow 0.3.0
Loading...
Searching...
No Matches
sparrow::mpl::boolean_like Concept Reference

Matches types that can be convertible to and assignable from bool. More...

#include <mp_utils.hpp>

Concept definition

template<class T>
concept sparrow::mpl::boolean_like = std::is_assignable_v<std::add_lvalue_reference_t<std::decay_t<T>>, bool>
and requires { static_cast<bool>(std::declval<T>()); }
Matches types that can be convertible to and assignable from bool.
Definition mp_utils.hpp:445

Detailed Description

Matches types that can be convertible to and assignable from bool.

We do not use std::convertible_to because we don't want to impose an implicit conversion.

Definition at line 445 of file mp_utils.hpp.