Console Library 8.0.0
A header-only library that makes C++ simple
Loading...
Searching...
No Matches
console::ops::max_element_t Struct Reference

容器最大值变换器。 More...

#include <gextra.h>

Public Member Functions

template<class Container>
auto operator() (const Container &c) const -> typename std::decay< decltype(*std::max_element(c.begin(), c.end()))>::type
 获取容器中的最大值。

Detailed Description

容器最大值变换器。

Member Function Documentation

◆ operator()()

template<class Container>
auto console::ops::max_element_t::operator() ( const Container & c) const -> typename std::decay< decltype(*std::max_element( c.begin(), c.end()))>::type
inline

获取容器中的最大值。

Parameters
c输入容器。
Returns
*std::max_element(c.begin(), c.end())。

The documentation for this struct was generated from the following file: