1 #pragma once // Source encoding: UTF-8 with BOM (π is a lowercase Greek "pi"). 11 #include <type_traits> 39 static constexpr
bool is_bool_ = std::is_same_v<T, bool>;
50 constexpr
operator Result() const noexcept {
return m_value; }
59 constexpr
Truth(
const Arg value ) noexcept: m_value( value ) {}
constexpr Truth(const Arg value) noexcept
Construction from bool (only).
A drop-in replacement for bool without implicit conversion from/to types other than bool.
Enable_if_ is just more readable than enable_if_t.
CPPX_USE_STD(basic_string, basic_string_view, bitset, char_traits, size)
std::enable_if_t< condition, Result > Enable_if_
Just more readable than enable_if_t.
Macros for generating more concise and clear using statements, primarily $use_cppx and $use_std,...