ELC in dev
ELC-lang
载入中...
搜索中...
未找到
elc::defs::base::min_t::for_type_t< T > 模板结构体 参考

Public 成员函数

constexpr auto operator() (::std::initializer_list< T >l) const noexcept
 
template<class... Args>
constexpr auto operator() (Args &&...rest) const noexcept
 

详细描述

template<typename T>
struct elc::defs::base::min_t::for_type_t< T >

在文件 all_defs.cpp2389 行定义.

成员函数说明

◆ operator()() [1/2]

template<typename T >
constexpr auto elc::defs::base::min_t::for_type_t< T >::operator() ( ::std::initializer_list< T >  l) const
inlineconstexprnoexcept

在文件 all_defs.cpp2390 行定义.

2390 {
2391 auto minlest=l.begin();
2392 for(const auto&i:l){
2393 const auto v=compare(*minlest,i);
2394 if(v>0)
2395 minlest=&i;
2396 }
2397 return *minlest;
2398 }
constexpr struct elc::defs::base::compare_t compare
constexpr T down_cast(U a) noexcept
向下转型至

◆ operator()() [2/2]

template<typename T >
template<class... Args>
constexpr auto elc::defs::base::min_t::for_type_t< T >::operator() ( Args &&...  rest) const
inlineconstexprnoexcept

在文件 all_defs.cpp2400 行定义.

2400 {
2401 return base_call(T(forward<Args>(rest))...);
2402 }

该结构体的文档由以下文件生成: