Spec-Zone.ru › C++

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/cpp/utility/functional/logical_or_void

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API