Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

The MPL Reference Manual: and_

Boost , ,

Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

Front Page / Metafunctions / Logical Operations / and_

and_

Synopsis

template<
      typename F1
    , typename F2
    ...
    , typename Fn = unspecified
    >
struct and_
{
    typedef unspecified type;
};

Description

Возвращает результат операции короткого замыкания логического и (&&) по своим аргументам.

Parameters

Parameter Requirement Description
F1, F2, ...Fn Нулевая Метафункция Аргументы операции.

Expression semantics

Для произвольных нуляров Метафункция f1, f2,... fn:

typedef and_<f1,f2,...,fn>::type r;
Return type:Integral Constant.
Semantics:r is false_ if either of f1::type::value, f2::type::value,... fn::type::value expressions evaluates to false, and true_ otherwise; guarantees left-to-right evaluation; the operands subsequent to the first fi metafunction that evaluates to false are not evaluated.
typedef and_<f1,f2,...,fn> r;
Return type:

Integral Constant.

Semantics:

Equivalent to

struct r : and_<f1,f2,...,fn>::type {};

Статья The MPL Reference Manual: and_ раздела может быть полезна для разработчиков на c++ и boost.




Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



:: Главная :: ::


реклама


©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
Top.Mail.Ru

Время компиляции файла: 2024-08-30 11:47:00
2025-05-19 23:53:00/0.0084240436553955/1