std::logical_or<void>
Определено в заголовке <functional> | ||
|---|---|---|
template<> class logical_or<void>; | (с C++14) |
std::logical_or<void> — это специализация std::logical_or с параметрами и возвращаемым типом, определяемыми по умолчанию.
Вложенные типы
| Вложенный тип | Определение |
|---|---|
is_transparent | неопределённый |
Члены-функции
| operator() | применяет operator|| к lhs и rhs (публичный член-функция) |
std::logical_or<void>::operator()
template< class T, class U >
constexpr auto operator()( T&& lhs, U&& rhs ) const
-> decltype(std::forward<T>(lhs) || std::forward<U>(rhs));
|
Возвращает результат std::forward<T>(lhs) || std::forward<U>(rhs).
Параметры
| lhs, rhs | - | значения для логического ИЛИ |
Возвращаемое значение
std::forward<T>(lhs) || std::forward<U>(rhs).
Пример
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/utility/functional/logical_or_void