Since Maxer<> use std::numeric_limits<T>::min() as the identity, it cannot be applied to generic types unless you specialized std::numeric_limits<> (and overloaded operator<,yes,notoperator>).
...
...
@@ -350,7 +350,7 @@ Since Maxer<> use std::numeric_limits<T>::min() as the identity, it cannot be ap
用于取最小值,运算符为std::min。
```c++
bvar::Maxer<int>value;
value<<1<<2<<3<<-4;
value<<1<<2<<3<<-4;
CHECK_EQ(-4,value.get_value());
```
Since Miner<> use std::numeric_limits<T>::max() as the identity, it cannot be applied to generic types unless you specialized std::numeric_limits<> (and overloaded operator<).