std::char_traits<CharT>::eof
来自cppreference.com
                    
                                        
                    < cpp | string | char traits
                    
                                                            
                    |   static int_type eof();  | 
(C++11 前) | |
|   static constexpr int_type eof() noexcept;  | 
(C++11 起) | |
返回不等价于任何 char_type 合法值的值。
正式而言,返回的值 e 满足 X::eq_int_type(e, X::to_int_type(c)) 对于所有 c 为 false 。
参数
(无)
返回值
不等于任何 char_type 合法值的值。
复杂度
常数。
参阅
|    [静态]  | 
   检查字符是否为 eof 值  (公开静态成员函数)  |