📄 mstl_exception.hpp
字号:
/*
The young Library
Copyright (c) 2005 by 杨桓
Permission to use, copy, modify, distribute and sell this software for any
purpose is hereby granted without fee, provided that the above copyright
notice appear in all copies and that both that copyright notice and this
permission notice appear in supporting documentation.
The author make no representations about the suitability of this software
for any purpose. It is provided "as is" without express or implied warranty.
*/
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
#ifndef __MACRO_CPLUSPLUS_MINI_STL_EXCEPTION_HEADER_FILE__
#define __MACRO_CPLUSPLUS_MINI_STL_EXCEPTION_HEADER_FILE__
//-----------------------------------------------------------------------------
#include <stdexcept>
#include "mstl_define.hpp"
//-----------------------------------------------------------------------------
__MACRO_CPLUSPLUS_MINI_STL_BEGIN_NAMESPACE__
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
inline void throw_logic_error( const char* error_info )
{
throw std::logic_error( error_info );
}
inline void throw_domain_error( const char* error_info )
{
throw std::domain_error( error_info );
}
inline void throw_invalid_argument( const char* error_info )
{
throw std::invalid_argument( error_info );
}
inline void throw_length_error( const char* error_info )
{
throw std::length_error( error_info );
}
inline void throw_out_of_range( const char* error_info )
{
throw std::out_of_range( error_info );
}
inline void throw_runtime_error( const char* error_info )
{
throw std::runtime_error( error_info );
}
inline void throw_overflow_error( const char* error_info )
{
throw std::overflow_error( error_info );
}
inline void throw_range_error( const char* error_info )
{
throw std::range_error( error_info );
}
inline void throw_underflow_error( const char* error_info )
{
throw std::underflow_error( error_info );
}
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
__MACRO_CPLUSPLUS_MINI_STL_END_NAMESPACE__
#endif
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -