/
githubmirror
/
json
Обзор
Документация
Войти
/
githubmirror
/
json
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
include/nlohmann/detail/meta/logic.hpp
54 строки
1 KB
EALePain
Reference tuple from json (#5016)
23 янв 2026, 10:14
Не верифицирован
23 янв 2026, 10:14
25f4863
Код
Авторство
О чём код?
#pragma once #include <nlohmann/detail/macro_scope.hpp> NLOHMANN_JSON_NAMESPACE_BEGIN namespace detail { #ifdef JSON_HAS_CPP_17 template<bool... Booleans> struct cxpr_or_impl : std::integral_constant < bool, (Booleans || ...) > {}; template<bool... Booleans> struct cxpr_and_impl : std::integral_constant < bool, (Booleans &&...) > {}; #else template<bool... Booleans> struct cxpr_or_impl : std::false_type {}; template<bool... Booleans> struct cxpr_or_impl<true, Booleans...> : std::true_type {}; template<bool... Booleans> struct cxpr_or_impl<false, Booleans...> : cxpr_or_impl<Booleans...> {}; template<bool... Booleans> struct cxpr_and_impl : std::true_type {}; template<bool... Booleans> struct cxpr_and_impl<true, Booleans...> : cxpr_and_impl<Booleans...> {}; template<bool... Booleans> struct cxpr_and_impl<false, Booleans...> : std::false_type {}; #endif template<class Boolean> struct cxpr_not : std::integral_constant < bool, !Boolean::value > {}; template<class... Booleans> struct cxpr_or : cxpr_or_impl<Booleans::value...> {}; template<bool... Booleans> struct cxpr_or_c : cxpr_or_impl<Booleans...> {}; template<class... Booleans> struct cxpr_and : cxpr_and_impl<Booleans::value...> {}; template<bool... Booleans> struct cxpr_and_c : cxpr_and_impl<Booleans...> {}; } // namespace detail NLOHMANN_JSON_NAMESPACE_END