![]() |
![]() ![]() ![]() ![]() |
![]() |
The MPL Reference Manual: maxBoost , ,
|
||||||||||||||||||||
| Front Page / Metafunctions / Miscellaneous / max |
Возвращает больший из двух аргументов.
#include <boost/mpl/min_max.hpp>
| Parameter | Requirement | Description |
|---|---|---|
| N1,N2 | Любой тип | Типы для сравнения. |
Для произвольных типовxиу:
typedef max<x,y>::type r;
| Return type: | A type. |
|---|---|
| Precondition: | less<x,y>::value is a well-formed integral constant expression. |
| Semantics: | Equivalent to typedef if_< less<x,y>,y,x >::type r; |
Постоянное время.
Статья The MPL Reference Manual: max раздела может быть полезна для разработчиков на c++ и boost.
:: Главная :: ::
реклама |